mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 00:31:22 +00:00
test: align cli runtime mocks with output runtime
This commit is contained in:
@@ -21,6 +21,8 @@ const runtime = {
|
||||
runtime.log(JSON.stringify(value, null, space > 0 ? space : undefined));
|
||||
}),
|
||||
exit: vi.fn(),
|
||||
writeStdout: vi.fn((value: string) => runtime.log(value)),
|
||||
writeJson: vi.fn((value: unknown, space = 2) => runtime.log(JSON.stringify(value, null, space))),
|
||||
};
|
||||
|
||||
vi.mock("../gateway/call.js", () => ({
|
||||
|
||||
Reference in New Issue
Block a user