Open glenjamin opened 1 month ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
not stale
Can confirm commenting out the lines changed in commit 169ba83 fixes this issue for me.
Version
30.0.0-alpha6
Steps to reproduce
Expected behavior
Test passes
Actual behavior
Additional context
I've traced this back to https://github.com/jestjs/jest/commit/169ba834126945aa252043008b9211229f9ba20b#diff-f8846ea7aae48b4baadb9c50ba129cdadc6783e6051e605b5e2827153fc04479R253
The assumption that
this.sample
is safe to modify is incorrect.I expect that this will fail in any scenario where
objectContaining
is compared against multiple valuescc @colinacassidy who supplied the previous fix
Environment