-
-
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 throws TypeError when a source property is null #6235
Comments
Please conform to issue template and provide a repro and detailed error message. |
This is pretty bad... Repro: https://repl.it/repls/PersonalVisibleCustomer Should be easy enough to fix though, mind sending a PR? |
@SimenB thanks for posting the shot etc We're over-capacity at the moment so unfortunately unable to submit any PRs, but if things cool down and nobody's fixed it then I don't mind picking it up, thanks! |
The stack trace before asynchronicity blows it away (on current master):
|
Closed via #6313, will be up in next patch release |
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. |
This code gives a TypeError as opposed to a nice assertion error.
Both myself and my colleague have had this issue this week and both of us took about an hour to realise it was a problem with Jest and not our code.
The text was updated successfully, but these errors were encountered: