-
-
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
Error message when comparing Immutable-js collection to array is confusing #2489
Comments
We could definitely create a |
@thymikee I can give this a shot if no one else will. I'd like to contribute more to the Jest ecosystem...and this seems like a small enough issue to start off with. I might even have some time this weekend. Any tips on where to start are welcome 🙂 |
@ttmarek great! Of course you can take it. For the Jest part you can start with looking at how to write a plugin for pretty-format package and how to detect that the value passed to it is coming from Immutable library. |
This will be in the next version of Jest thanks to @cpenarrieta. |
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. |
Do you want to request a feature or report a bug?
Enhancement request (so feature, I guess?)
What is the current behavior?
Given a test like this:
The failure message is a bit confusing:
What is the expected behavior?
Maybe something like this:
Or this:
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Whichever version of Jest we use internally at Facebook.
The text was updated successfully, but these errors were encountered: