-
-
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
toEqual() on Object with undefined values #8588
Comments
Use |
Thanks for the advice. I totally missed that in the docs. I wonder if this section should be updated to point people there: https://jestjs.io/docs/en/using-matchers#common-matchers |
Yes, I think it would be a good idea to suggest |
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. |
🐛 Bug Report
When calling
toEqual
on an object, where one of the values isundefined
does not compare that key.To Reproduce
This assertion fails:
Expected behavior
That should pass.
Link to repl or repo (highly encouraged)
https://repl.it/repls/KeenSnappyCodewarrior
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: