We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi. We did pay attention in our tests that we cannot rely anymore on deep.equal when comparing objects with ObjectId() or even ObjectIds itself.
deep.equal
Env: node v16 Mongoose version: v5 vs v6
For the mongoose v5 tests work as expected.
{ "dependencies": { "chai": "^4.3.6", "mocha": "^10.0.0", "mongoose": "^5.0.0" } }
For mongoose v6 tests are passing when they should fail.
{ "dependencies": { "chai": "^4.3.6", "mocha": "^10.0.0", "mongoose": "^6.0.0" } }
I did prepare a repo for reproducing the issue: https://github.com/spaiz/objectId_tests
The text was updated successfully, but these errors were encountered:
I assume this PR should fix it :/
chaijs/deep-eql#86
Sorry, something went wrong.
hi any news on this?
I believe this issue has been fixed, at least as of the latest version in the 7.x branch - possibly earlier. @spaiz @leyb-guesty can you confirm?
7.x
No branches or pull requests
Hi. We did pay attention in our tests that we cannot rely anymore on
deep.equal
when comparing objects with ObjectId() or even ObjectIds itself.Env: node v16
Mongoose version: v5 vs v6
For the mongoose v5 tests work as expected.
For mongoose v6 tests are passing when they should fail.
I did prepare a repo for reproducing the issue: https://github.com/spaiz/objectId_tests
The text was updated successfully, but these errors were encountered: