mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-31 20:01:36 +00:00
test: align cli runtime mocks with output runtime
This commit is contained in:
@@ -43,6 +43,8 @@ vi.mock("../runtime.js", () => ({
|
||||
writeJson: (value: unknown, space = 2) =>
|
||||
mocks.log(JSON.stringify(value, null, space > 0 ? space : undefined)),
|
||||
exit: (...args: unknown[]) => mocks.exit(...args),
|
||||
writeStdout: (...args: unknown[]) => mocks.log(...args),
|
||||
writeJson: (value: unknown, space = 2) => mocks.log(JSON.stringify(value, null, space)),
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user