diff --git a/src/daemon/launchd.test.ts b/src/daemon/launchd.test.ts index 0ba79559850..18db288d93c 100644 --- a/src/daemon/launchd.test.ts +++ b/src/daemon/launchd.test.ts @@ -249,14 +249,6 @@ vi.mock("node:fs/promises", async () => { unlink: vi.fn(async (p: string) => { state.files.delete(p); }), - readFile: vi.fn(async (p: string) => { - const key = p; - const value = state.files.get(key); - if (value !== undefined) { - return value; - } - throw new Error(`ENOENT: no such file or directory, open '${key}'`); - }), writeFile: vi.fn(async (p: string, data: string, opts?: { mode?: number }) => { const key = p; state.files.set(key, data);