-
-
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
pass on comparing different Error objects
#3859
Comments
@thymikee |
@thymikee am I correct in assuming that these tests should pass:
and
|
Not yet, but in next Jest release. |
Ah. I see there is an open PR already. I was investigating this issue as well as I assumed it was still open. Anyway added a comment on the PR instead. |
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. |
Do you want to request a feature or report a bug?
enhancement
What is the current behavior?
toMatchObject
pass on comparing different Error objects.repro
This test will pass:
What is the expected behavior?
toMatchObject
should fail on comparing Errors and show a proper message.Originally reported in: #3795
The text was updated successfully, but these errors were encountered: