test: stabilize json runtime captures (#52428) (thanks @karanuppal)

This commit is contained in:
Peter Steinberger
2026-03-22 23:48:15 +00:00
parent a2999c6cfb
commit aaa6068c08
21 changed files with 103 additions and 11 deletions

View File

@@ -29,6 +29,7 @@ vi.mock("../runtime.js", () => ({
defaultRuntime: {
log: vi.fn(),
error: vi.fn(),
writeStdout: vi.fn(),
writeJson: vi.fn(),
exit: (code: number) => {
throw new Error(`__exit__:${code}`);