import { describe, expect, it, vi } from "vitest"; const execSync = vi.hoisted(() => vi.fn(() => "")); const execFileSync = vi.hoisted(() => vi.fn(() => "")); vi.mock("child_process", async (importActual) => ({ ...(await importActual()), execSync, execFileSync, })); describe("importing the engine", () => { it("runs no subprocess", async () => { await import("./audioFxRender.js"); await import("../index.js"); expect(execSync).not.toHaveBeenCalled(); expect(execFileSync).not.toHaveBeenCalled(); }, 60_000); });