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
Array.toContain() with expect.objectContaining #3954
Comments
FWIW, check out #2143 |
@KarandikarMihir |
@KeKs0r If this helps!
Is passing without any issues. |
@anilreddykatta thanks this is working fine.. |
I just ran into the same issue. I find it a little confusing that |
@WickyNilliams I agree that the naming there is a bit confusing, but you have to think like this: |
Coming back with more experience of jest, I would say the naming is ok. The |
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. |
What is the current behavior?
It seems that
.toContain()
can't be combined withexpect.objectContaining
. There might be another solution to test if an array of objects contains a specific object, but I somehow thought that combining toContain with expect.objectContaining would do the trick.Example Test
Output
The text was updated successfully, but these errors were encountered: