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
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 using property matchers in snapshots (https://jestjs.io/docs/en/snapshot-testing#property-matchers) the matcher mutates the object.
To Reproduce
That test will fail the last assertion.
Expected behavior
The passed in object should not be mutated.
Link to repl or repo (highly encouraged)
REPL is on Jest 22, but see "To reproduce"
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: