-
-
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
Jest hangs on invalid expectation(s) #6157
Comments
This seems configuration specific, can you push a repo? |
@rickhanlonii you can take a look at it here. (Please notice the branch -- Thanks for quick turnaround. |
@another-guy hm, this did not hang for me: |
@rickhanlonii thank you for looking into it. I should try to rollback from Node.js 10.0.0 to whatever I had day before yesterday and re-check. Things seemed to be working jest a few days ago. |
It hangs when I use Node 10 |
It does not hang on node 10.1.0, though. Maaaaybe related to nodejs/node#20266? |
@SimenB I confirm the upgrade resolved the issue. Thanks a ton!
|
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. |
TL;DR The issue is specific to Node 10.0.0; Try upgrading to 10.1.0 or above.
🐛 Bug Report
If my there is at least one expectation in my unit test that is not fulfilled at test time, the entire test suite "hangs" instead of reporting a failed ("red") test.
(On contrary, If all my expectations are fulfilled at test time, the tests does not seem to hang.)
To Reproduce
The following test code is an example.
Run Jest from Git Bash/CMD, observe the following output:
Software/Package Versions:
Expected behavior
The test should be reported as failing.
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: