fix: add missing existsSync to fs mock in processor tests

This commit is contained in:
2026-08-11 09:04:16 +02:00
parent f6dc3801c6
commit 95d25a6d8a
+1
View File
@@ -12,6 +12,7 @@ jest.mock('@/lib/prisma', () => ({
jest.mock('@/lib/token') jest.mock('@/lib/token')
jest.mock('child_process') jest.mock('child_process')
jest.mock('fs', () => ({ jest.mock('fs', () => ({
existsSync: jest.fn(() => false),
readdirSync: jest.fn(() => ['uuid-abc.mp4']), readdirSync: jest.fn(() => ['uuid-abc.mp4']),
statSync: jest.fn(() => ({ size: 1024 })), statSync: jest.fn(() => ({ size: 1024 })),
})) }))