-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
expect(...).rejects.toEqual() crashes test runner when assertion fails #6633
Comments
using |
batmat
added a commit
to batmat/evergreen
that referenced
this issue
Oct 16, 2018
ESLint rules for Jest. Stumbled into it from jestjs/jest#6633 (comment)
batmat
added a commit
to batmat/evergreen
that referenced
this issue
Oct 17, 2018
ESLint rules for Jest. Stumbled into it from jestjs/jest#6633 (comment)
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐛 Bug Report
I am attempting to write a test that asserts that an error thrown conforms to a particular format. Ive noticed that the .rejects.toEquals approach works assuming the assertions pulls through. However, if it fails the test runner crashes. Ive tried putting try catch blocks over the assertion but to no avail. I also did some light reading into the issue and found that this has been a known issue so I'm looking for potential mitigation strategies or guidance.
To Reproduce
Expected behavior
the test runner doesn't crash
Actual behavior
The text was updated successfully, but these errors were encountered: