fix(ci): align test mock typings

This commit is contained in:
Peter Steinberger
2026-04-03 19:59:28 +01:00
parent 0464435777
commit ffba320a2c
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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,
},
);
});