fix(ci): restore cli runtime mocks and timeout exits

This commit is contained in:
Peter Steinberger
2026-03-22 23:43:16 +00:00
parent 85f8437399
commit 4e531d382b
11 changed files with 59 additions and 17 deletions

View File

@@ -39,6 +39,8 @@ vi.mock("../runtime.js", () => ({
defaultRuntime: {
log: (...args: unknown[]) => mocks.log(...args),
error: (...args: unknown[]) => mocks.error(...args),
writeJson: (value: unknown, space = 2) =>
mocks.log(JSON.stringify(value, null, space > 0 ? space : undefined)),
exit: (...args: unknown[]) => mocks.exit(...args),
},
}));