-
-
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
toMatchObject not working to assert on the message of an error #5359
Comments
If using
So I think this is a matter of (we also should fix our message, as the diff is misleading with the current |
Ironically, |
Hi, What I suggest, and will send a PR soon to include this, is to remove the |
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. |
What is the current behavior?
While discussing on issue #3601, we found that the method
toMatchObject
isn't working to assert on the message of aError
.In fact, the following expectation doesn't work:
What is the expected behavior?
The expectation described above should pass.
The text was updated successfully, but these errors were encountered: