diff --git a/frontend/tests/setup.js b/frontend/tests/setup.js index 7b0828b..982548f 100644 --- a/frontend/tests/setup.js +++ b/frontend/tests/setup.js @@ -1 +1,13 @@ import '@testing-library/jest-dom'; + +// Suppress noisy act() warnings from async state updates in useEffect hooks. +// All assertions still run — this only silences the console.error spam that +// causes OOM crashes when running the full suite. +const originalError = console.error; +beforeAll(() => { + console.error = (...args) => { + if (typeof args[0] === 'string' && args[0].includes('not wrapped in act')) return; + originalError(...args); + }; +}); +afterAll(() => { console.error = originalError; });