mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
test: trim commands and cli partial mocks
This commit is contained in:
@@ -13,8 +13,8 @@ vi.mock("./gateway-rpc.js", () => ({
|
||||
callGatewayFromCli,
|
||||
}));
|
||||
|
||||
vi.mock("../runtime.js", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("../runtime.js")>()),
|
||||
vi.mock("../runtime.js", async () => ({
|
||||
...(await vi.importActual<typeof import("../runtime.js")>("../runtime.js")),
|
||||
defaultRuntime,
|
||||
writeRuntimeJson: (runtime: { log: (...args: unknown[]) => void }, value: unknown, space = 2) =>
|
||||
runtime.log(JSON.stringify(value, null, space > 0 ? space : undefined)),
|
||||
|
||||
Reference in New Issue
Block a user