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; });