-
-
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 doesn't do deep equal #6204
Comments
Was just about to write the same thing. Can we make |
Jasmine's implementation is a bit better: https://github.com/jasmine/jasmine/blob/e2d9eefccdca3916b341a4927de7919003525cbc/src/core/base.js#L103-L112 EDIT: Heh, fixed 2 weeks ago: jasmine/jasmine@ced2b11 |
How about documenting this speciality behaviour? There's nothing in the paragraph about toEqual. What could be worse than an unreliable test framework? |
@yeahio this bug has been fixed, and I've just tried it out and confirmed that it still is fixed |
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
toEqual
doesn't do deep equalTo Reproduce
just run:
Test will pass
Expected behavior
Test shoudn't pass
Link to repl or repo (highly encouraged)
https://github.com/bondom/jest-bug
Run
npx envinfo --preset jest
Paste the results here:
System: OS: macOS High Sierra 10.13.4 CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Binaries: Node: 8.10.0 - /usr/local/bin/node npm: 6.0.1 - /usr/local/bin/npm npmPackages: jest: ^22.4.4 => 22.4.4
The text was updated successfully, but these errors were encountered: