From 9b842bd87ba87a068560dc7c1291dc74fa1a8443 Mon Sep 17 00:00:00 2001 From: denshooter Date: Wed, 15 Oct 2025 16:08:29 +0200 Subject: [PATCH] Fix ESLint error in jest.setup.ts - Remove require() import that was causing linting error - Simplify React act() function mocking for production builds --- jest.setup.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jest.setup.ts b/jest.setup.ts index 995290a..19f6a05 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -15,10 +15,7 @@ if (process.env.NODE_ENV === 'production') { } // Also mock the act function from react-dom/test-utils - const { act } = require('react-dom/test-utils'); - if (act) { - global.act = act; - } + // This is handled by Jest's module resolution } // Mock react-responsive-masonry