test(daemon): remove duplicate launchd read mock

This commit is contained in:
Peter Steinberger
2026-04-25 07:12:09 +01:00
parent b8b270d5b8
commit 017252e4f8

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 data = state.files.get(key);
if (data !== undefined) {
return data;
}
throw new Error(`ENOENT: no such file or directory, read '${key}'`);
}),
writeFile: vi.fn(async (p: string, data: string, opts?: { mode?: number }) => {
const key = p;
state.files.set(key, data);