mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 18:12:52 +00:00
fix(ci): type qr dashboard runtime mocks
This commit is contained in:
@@ -18,12 +18,12 @@ type CliRuntimeEnv = RuntimeEnv & {
|
||||
const runtimeLogs: string[] = [];
|
||||
const runtimeErrors: string[] = [];
|
||||
const runtime = vi.hoisted<CliRuntimeEnv>(() => ({
|
||||
log: (...args: unknown[]) => {
|
||||
log: vi.fn((...args: unknown[]) => {
|
||||
runtimeLogs.push(args.map(String).join(" "));
|
||||
},
|
||||
error: (...args: unknown[]) => {
|
||||
}),
|
||||
error: vi.fn((...args: unknown[]) => {
|
||||
runtimeErrors.push(args.map(String).join(" "));
|
||||
},
|
||||
}),
|
||||
exit: vi.fn<(code: number) => void>(),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user