mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
fix(ci): align test mock typings
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user