-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testTimeout config not working in projects #9696
Comments
Also, is there a reason why |
Any update on this? I've got one project containing long-running tests and one with shorter tests, so this functionality would be nice. |
I confirm, this is an oversight that should be easy to solve. In the meantime my configuration has to look like this:
|
@crubier I am sure Jest would appreciate a PR if you can solve it 😃 |
I have absolutely no knowledge of the codebase of jest, it will probably take me 2hours just to find the line of code to change. If someone want to give me a pointer I can do that. |
bump |
Unfortunately, the only solution I have found is adding Example:
Example jest.setup.js file
|
is there any progress on this? |
+1 |
Coming from jasmine runner, this seems like a gap in being able to use |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
The configuration
testTimeout
(https://jestjs.io/docs/en/configuration#testtimeout-number) does not work inprojects
(https://jestjs.io/docs/en/configuration#projects-arraystring--projectconfig)To Reproduce
Use this config and write a test taking more than 1 ms.
Expected behavior
I expect each
it()
,beforeEach()
etc. to time out after 1 ms.Note that if you move the
testTimeout: 1,
outside of theprojects
array the config does kick in. I.e. this works:Original implementation: #6216
Link to repl or repo (highly encouraged)
envinfo
The text was updated successfully, but these errors were encountered: