mirror of https://github.com/openclaw/openclaw.git
fix(ci): align test mock typings
This commit is contained in:
parent
0464435777
commit
ffba320a2c
|
|
@ -354,7 +354,8 @@ describe("registerSlackInteractionEvents", () => {
|
|||
});
|
||||
|
||||
expect(ack).toHaveBeenCalled();
|
||||
const dispatchCall = dispatchPluginInteractiveHandlerMock.mock.calls[0]?.[0] as
|
||||
const dispatchCalls = dispatchPluginInteractiveHandlerMock.mock.calls as unknown[][];
|
||||
const dispatchCall = dispatchCalls[0]?.[0] as
|
||||
| {
|
||||
channel?: string;
|
||||
data?: string;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ vi.mock("node:child_process", async () => {
|
|||
return mockNodeBuiltinModule(
|
||||
() => vi.importActual<typeof import("node:child_process")>("node:child_process"),
|
||||
{
|
||||
spawn,
|
||||
spawn: spawn as unknown as typeof import("node:child_process").spawn,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue