-
-
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
Messages from custom AssymetricMatchers are ignored #7492
Comments
AssymetricMatchers
are ignored
@jayarjo thanks to submitting I ran the above code and I see the expected failure: |
Is this expected? Looks more like generic default. What about In my case |
:/ But won't it be a great feature, if nested asymmetric matchers would be able to show full messages? In the case above matcher is trivial, so it's self-explanatory even with generic message what exactly went wrong. Potentially they might be (and actually are more useful if they are) much more complex than that. Take |
Yes, we could definitely improve here, just closed this because it's not a bug Would you be interested in submitting a feature proposal with a suggestion on how we could improve common use cases? |
Heh, sorry about the churn... |
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. |
🐛 Bug Report
Messages from custom
AssymetricMatchers
are ignored, while according to the following illustration, they were meant to be taken into account.To Reproduce
Simply try to run the example from illustration, but force it to fail (the one above succeeds so no error messages have to be shown):
Expected behavior
As illustration shows, one would expect a proper error message to be displayed.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: