From 9d764ea075e14f7e00ccd24058c5f8530920cb85 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 25 Apr 2026 20:33:00 +0100 Subject: [PATCH] test(plugins): preserve child_process exports in runtime deps mock --- src/plugins/bundled-runtime-deps.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/bundled-runtime-deps.test.ts b/src/plugins/bundled-runtime-deps.test.ts index 269bc557442..b6c7b1617a0 100644 --- a/src/plugins/bundled-runtime-deps.test.ts +++ b/src/plugins/bundled-runtime-deps.test.ts @@ -16,7 +16,8 @@ import { type BundledRuntimeDepsInstallParams, } from "./bundled-runtime-deps.js"; -vi.mock("node:child_process", () => ({ +vi.mock("node:child_process", async (importOriginal) => ({ + ...(await importOriginal()), spawnSync: vi.fn(), }));