test: remove duplicate launchd read mock

This commit is contained in:
Peter Steinberger
2026-04-25 07:10:32 +01:00
parent 85cab8b516
commit 07cf1dd65c

View File

@@ -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);