-
-
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 should avoid printing the individual tests if beforeAll fails #9901
Comments
Hi 👋 Can I work on this issue? |
Yeah, that'd be lovely! Feel free to ask questions if you get stuck or want a pointer 🙂 I'd start in |
When Wasn't sure if this bug will already be fixed by #10004 so please let me know if you'd like me to file a new issue! |
Hi! Has there been any progress on this issue? :) |
@vldmrkl Looking forward to you working on this issue 😄 |
Sorry, can't continue working on this issue. |
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. |
I think this change still makes sense and the issue should remain open. |
Hey, I'd like to work on this issue. :) |
@itaizelther I'd say go for it and push a PR, continuing on the one already started. |
@thernstig I have no write permissions to the existing PR, so I have created a new one: #13273 |
I am not a maintainer here, just meant that I don't think anyone minds if you start a new PR. Great that you did! |
@itaizelther thank you 🙏 |
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. |
Since there is a PR at #13273 I am bumping this |
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. |
Since there is a PR at #13273 I am bumping this |
🐛 Bug Report
When beforeAll fails, none of the other tests actually execute, but they all fail with the same reason, and they all print the same error.
Jest should avoid printing the individual tests if beforeAll fails. Right now the implementation just checks if there is an error and if yes, print it and fail the test without actually executing it.
Note that @SimenB asked me to create this #6695 (comment).
To Reproduce
Run a beforeAll() that fails where a couple of tests are executed after. This is the failure received (with the supplied repro below):
Expected behavior
Jest should avoid printing the individual tests if beforeAll fails. It is highly confusing for users.
Link to repl or repo (highly encouraged)
envinfo
The text was updated successfully, but these errors were encountered: