You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
It seems like last changes in
toThrow
(#7621) broke a behaviour uses were relying on in Jest 23.We can expect
toThrow
to behave liketoEqual
on the thrown error, but that's not the case anymore.To Reproduce
Steps to reproduce the behavior:
Run this test with Jest 23 and Jest 24.0.0-alpha.13:
Expected behavior
No errors. Those two tests should be equivalent.
Also, I found the error message a bit confusing:
The text was updated successfully, but these errors were encountered: