From 07cf1dd65c937c75cf48a1645ea580404f5056b4 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 25 Apr 2026 07:10:32 +0100 Subject: [PATCH] test: remove duplicate launchd read mock --- src/daemon/launchd.test.ts | 8 -------- 1 file changed, 8 deletions(-) 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);