-
Notifications
You must be signed in to change notification settings - Fork 82
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
Chai's to.deep.have.members
is converted to toEqual
which is wrong
#124
Comments
Thanks for reporting this. Are you up for creating a PR for this? We don't want to depend on |
Not sure I see alternative to |
So I just checked and we convert: - expect([{ id: 1 }]).to.deep.include.members([{ id: 1 }]);
+ expect([{ id: 1 }]).toEqual(expect.arrayContaining([{ id: 1 }])); That seems to be correct. Can you report which case this didn't work for you @deser |
As far as I remember it was just toEqual without |
I have found correct method for that in
jest-extended
-toIncludeAllMembers
.The text was updated successfully, but these errors were encountered: