chore: Fix types in tests 30/N.

This commit is contained in:
cpojer
2026-02-17 14:32:57 +09:00
parent ecf1c955a1
commit f2f17bafbc
9 changed files with 65 additions and 32 deletions

View File

@@ -1,12 +1,14 @@
import { Command } from "commander";
import { describe, expect, it, vi } from "vitest";
const callGatewayFromCli = vi.fn(async (method: string, _opts: unknown, params?: unknown) => {
if (method === "cron.status") {
return { enabled: true };
}
return { ok: true, params };
});
const callGatewayFromCli = vi.fn(
async (method: string, _opts: unknown, params?: unknown, _timeoutMs?: number) => {
if (method === "cron.status") {
return { enabled: true };
}
return { ok: true, params };
},
);
vi.mock("./gateway-rpc.js", async () => {
const actual = await vi.importActual<typeof import("./gateway-rpc.js")>("./gateway-rpc.js");