-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Jest 28 fails on Immutable.List().filter toEqual comparison #12752
Comments
I can definitely take a look. Thanks for tracking down the offending commit, I'll do some digging and see what filter is doing with Any ideas that are coming to mind? |
Had some time to dig in, the problem is
I see there are checks for |
That sounds reasonable to me! |
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. |
Version
28.0.1
Steps to reproduce
Install latest
immutable
- (e.g.yarn add immutable@^4.0.0
).Create the following test file:
Run the file in Jest 28.0.1.
Expected behavior
I expect the test to pass, as it does in Jest 27.5.1
Actual behavior
The test fails with the following error:
Additional context
I see the same issue with
immutable@^3
as well.Other deep equality comparisons with ImmutableJS objects that you'd expect to pass, do pass in Jest 28:
The only reliable one I can reproduce is when a
List
getsfilter
'd.Environment
The text was updated successfully, but these errors were encountered: