test: fix health route unit test mock for fs.mkdir

swadhinbiswas committed 3 months ago
8786651
1 parent f6c4a97
commit 8786651
1 file changed
+1 -0
Showing 1 changed file+1-0
▼tests/unit/health-route.test.ts
+1-0
37
37
38
38
vi.mock("fs/promises", () => ({
39
39
access: fsAccessMock,
40
+ mkdir: vi.fn(async () => undefined),
40
41
}));
41
42
42
43
import { GET as healthGet } from "@/pages/api/health";
43
44