test: trim commands and cli partial mocks

This commit is contained in:
Peter Steinberger
2026-04-03 20:34:16 +01:00
parent f7f467b042
commit 6f8f2a012b
14 changed files with 38 additions and 29 deletions

View File

@@ -77,8 +77,8 @@ vi.mock("../gateway/call.js", () => ({
randomIdempotencyKey: () => randomIdempotencyKey(),
}));
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: mocks.defaultRuntime,
}));