mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-25 00:42:24 +00:00
test: stabilize json runtime captures (#52428) (thanks @karanuppal)
This commit is contained in:
@@ -139,6 +139,9 @@ vi.mock("../runtime.js", () => ({
|
||||
defaultRuntime: {
|
||||
log: runtimeLog,
|
||||
error: runtimeError,
|
||||
writeStdout: vi.fn((value: string) =>
|
||||
runtimeLog(value.endsWith("\n") ? value.slice(0, -1) : value),
|
||||
),
|
||||
writeJson: runtimeWriteJson,
|
||||
exit: runtimeExit,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user