You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: testTimeout in a project config is accepted but never applied #16510
The test passes: the project sets testTimeout: 30000, and the test takes 6 s.
Actual behavior
The test fails with the default timeout:
thrown: "Exceeded timeout of 5000 ms for a test.
npx jest --showConfig shows configs[0].testTimeout: 30000 and no globalConfig.testTimeout, so the option is accepted and normalized, but nothing reads it. A beforeAll hook that takes 6 s fails the same way ("Exceeded timeout of 5000 ms for a hook").
Moving testTimeout: 30000 to the top level of jest.config.js makes the test pass.
Additional context
jest-circus only reads the global value, in packages/jest-circus/src/legacy-code-todo-rewrite/jestAdapterInit.ts:
I'd like to take this on. I'll inspect jest-circus and jest-runner to make sure config.testTimeout takes effect per project as expected and add unit/integration test coverage.
Activity
fix: apply testTimeout from project config (jestjs#16510)
GautamKumarOffical commentedon Nov 5, 2026
I'd like to take this on. I'll inspect jest-circus and jest-runner to make sure config.testTimeout takes effect per project as expected and add unit/integration test coverage.
fix(circus, jasmine2): apply testTimeout defined in project configura…