-
-
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
afterAll inside a describe hides errors #6692
Comments
I wonder if this also is more sane with jest-circus. Can you try it out? #6695 (comment) |
This does seem to work correctly under jest-circus 23.4.1. |
CLosing then, as circus will become the default and we're unlikely to fix errors with jasmine |
The default Jasmine-based runner is broken in this regard: jestjs/jest#6692
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
Errors thrown in
afterAll
inside adescribe
can cause a test suite to fail silently.This bug was previously reported under #3266 and fixed under #5884 - but the fix addresses errors in an
afterAll
at the top level, not inside adescribe
.To Reproduce
Expected behavior
The test suite should fail, like it does if the error were thrown in a top-level
afterAll
.Link to repl or repo (highly encouraged)
https://repl.it/HAYG/1 (same repl as #3266 - thanks @gdborton)
As of writing repl.it is only running jest 22.1.2 whereas the fix for #3266 was released in 23.0.0. However the issue is present in the latest version of 23.4.1.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: