mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 19:32:27 +00:00
test: restore runtime-aware cli mocks
This commit is contained in:
@@ -81,7 +81,8 @@ vi.mock("../infra/ports.js", () => ({
|
||||
formatPortDiagnostics: () => ["Port 18789 is already in use."],
|
||||
}));
|
||||
|
||||
vi.mock("../runtime.js", () => ({
|
||||
vi.mock("../runtime.js", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("../runtime.js")>()),
|
||||
defaultRuntime,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user