You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you're comparing two objects and you use expect.any(String) for some keys, and the test fails for some reason, diff highlights all those places where you used expect.any(String) which is very confusing.
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
馃悰 Bug Report
When you're comparing two objects and you use
expect.any(String)
for some keys, and the test fails for some reason, diff highlights all those places where you usedexpect.any(String)
which is very confusing.To Reproduce
Expected behavior
In case of a failure, diff should not highlight
expect.any(String)
.Link to repl or repo (highly encouraged)
Not available
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: