chore: Fix types in tests 15/N.

This commit is contained in:
cpojer
2026-02-17 11:59:17 +09:00
parent db3529e924
commit a76a9c375f
7 changed files with 75 additions and 59 deletions

View File

@@ -22,7 +22,7 @@ import { parseTimeoutMs } from "../nodes-run.js";
const callGatewaySpy = vi.fn(async () => ({ decision: "allow-once" }));
vi.mock("../../gateway/call.js", () => ({
callGateway: (...args: unknown[]) => callGatewaySpy(...args),
callGateway: callGatewaySpy,
randomIdempotencyKey: () => "mock-key",
}));

View File

@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
const messageCommandMock = vi.fn(async () => {});
vi.mock("../../../commands/message.js", () => ({
messageCommand: (...args: unknown[]) => messageCommandMock(...args),
messageCommand: messageCommandMock,
}));
vi.mock("../../../globals.js", () => ({
@@ -33,7 +33,7 @@ const runGlobalGatewayStopSafelyMock = vi.fn(
},
);
vi.mock("../../../plugins/hook-runner-global.js", () => ({
runGlobalGatewayStopSafely: (...args: unknown[]) => runGlobalGatewayStopSafelyMock(...args),
runGlobalGatewayStopSafely: runGlobalGatewayStopSafelyMock,
}));
const exitMock = vi.fn((): never => {