From 95d25a6d8ade4858414902e96c32d2340f44de81 Mon Sep 17 00:00:00 2001 From: Anthony G <1@anthony.sh> Date: Tue, 11 Aug 2026 09:04:16 +0200 Subject: [PATCH] fix: add missing existsSync to fs mock in processor tests --- worker/__tests__/processor.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/worker/__tests__/processor.test.ts b/worker/__tests__/processor.test.ts index 968889c..57ec5f2 100644 --- a/worker/__tests__/processor.test.ts +++ b/worker/__tests__/processor.test.ts @@ -12,6 +12,7 @@ jest.mock('@/lib/prisma', () => ({ jest.mock('@/lib/token') jest.mock('child_process') jest.mock('fs', () => ({ + existsSync: jest.fn(() => false), readdirSync: jest.fn(() => ['uuid-abc.mp4']), statSync: jest.fn(() => ({ size: 1024 })), }))