test(plugins): preserve child_process exports in runtime deps mock · openclaw/openclaw@9d764ea
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,8 @@ import {
|
16 | 16 | type BundledRuntimeDepsInstallParams, |
17 | 17 | } from "./bundled-runtime-deps.js"; |
18 | 18 | |
19 | | -vi.mock("node:child_process", () => ({ |
| 19 | +vi.mock("node:child_process", async (importOriginal) => ({ |
| 20 | + ...(await importOriginal<typeof import("node:child_process")>()), |
20 | 21 | spawnSync: vi.fn(), |
21 | 22 | })); |
22 | 23 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。