test: align cli runtime mocks with output runtime

This commit is contained in:
Peter Steinberger
2026-03-22 17:29:28 -07:00
parent 7bd12f4b37
commit 976eefe373
15 changed files with 37 additions and 47 deletions

View File

@@ -139,11 +139,11 @@ vi.mock("../runtime.js", () => ({
defaultRuntime: {
log: runtimeLog,
error: runtimeError,
exit: runtimeExit,
writeStdout: vi.fn((value: string) =>
runtimeLog(value.endsWith("\n") ? value.slice(0, -1) : value),
),
writeJson: runtimeWriteJson,
exit: runtimeExit,
},
}));