Open wolfgangwalther opened 3 years ago
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.
Still an issue with jest 29.3.1
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.
Still an issue with jest 29.7.0
Version
27.3.1
Steps to reproduce
Expected behavior
Actual behavior
Additional context
There's two things happening here:
expect.any(Object)
is matching, but is visually reported as failing. This seems to be the same thing as #6184.Doing the same with just
expect({ ... }).toMatchObject({ ... })
instead oftoHaveBeenCalledWith
is showing a slightlymore helpfulless misleading diff:It would be even more helpful to have the multi-line output as seen above, though - of course, only when the diff is actually correct... ;)
Environment