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 a local variable as an argument to an
objectContaining
asymmetric matcher, the variable is mutated in the containing scope.To Reproduce
Steps to reproduce the behavior: see example repl.it
Expected behavior
Asymmetric matchers should not mutate their input arguments.
Link to repl or repo (highly encouraged)
https://repl.it/repls/CylindricalTenderDemand#objectContaining-mutates.test.js
envinfo
The text was updated successfully, but these errors were encountered: