


























@@ -1,11 +1,25 @@
11import { constants as fsConstants } from "node:fs";
22import fs from "node:fs/promises";
33import path from "node:path";
4-import { afterEach, describe, expect, it } from "vitest";
4+import { afterEach, describe, expect, it, vi } from "vitest";
55import { __setFsSafeTestHooksForTest } from "../infra/fs-safe.js";
66import { withTempDir } from "../test-utils/temp-dir.js";
77import { __testing, createExecTool } from "./bash-tools.exec.js";
889+vi.mock("./bash-tools.exec-host-gateway.js", () => ({
10+processGatewayAllowlist: async () => ({ allowWithoutEnforcedCommand: true }),
11+}));
12+13+vi.mock("./bash-tools.exec-host-node.js", () => ({
14+executeNodeHostCommand: async () => {
15+throw new Error("node host execution is not used by script preflight tests");
16+},
17+}));
18+19+vi.mock("../utils/delivery-context.js", () => ({
20+normalizeDeliveryContext: (value: unknown) => value,
21+}));
22+923const isWin = process.platform === "win32";
10241125const describeNonWin = isWin ? describe.skip : describe;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。