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
vwinkler
changed the title
[Bug]: toHaveBeenCalledWith does not differentiante [undefined] and [] arguments
[Bug]: toHaveBeenCalledWith does not differentiate [undefined] and [] arguments
Jan 14, 2025
@vwinkler Yeah. I was looking through the source and found out that the check for equality wasn't strict. It treated an empty array [] and [undefined] as equal (just like you mentioned).
Version
29.7.0
Steps to reproduce
Example steps (replace with your own):
Expected behavior
Actual behavior
Additional context
This seems to be a regression. Jest 27 behaves as expected.
Environment
The text was updated successfully, but these errors were encountered: