Exceeded timeout of 5000 ms for a test
What causes it and how to fix it:
- Jest's 5-second default timeout fails render tests under load, and the timed-out test breaks the next oneThe first jsdom + React test of a suite pays for the cold module load; on a busy build machine it passes 5 s, Jest abandons it while its async render keeps running, and the following test fails with "button not found" or a doubled write. Set testTimeout for the project, not per testCause and fix →