chore: Fix types in tests 41/N.

This commit is contained in:
cpojer
2026-02-17 15:48:16 +09:00
parent 3dc8d5656d
commit 6264c5e842
17 changed files with 81 additions and 43 deletions

View File

@@ -26,8 +26,12 @@ vi.mock("../../slack/scopes.js", () => ({
}));
const runtime = {
log: (value: string) => logs.push(value),
error: (value: string) => errors.push(value),
log: (...args: unknown[]) => {
logs.push(args.map(String).join(" "));
},
error: (...args: unknown[]) => {
errors.push(args.map(String).join(" "));
},
exit: (code: number) => {
throw new Error(`exit:${code}`);
},