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
Jasmine gives you special values that you can use at the right side of toEqual, to make the comparison more flexible. After #2213 this also will be landed as a part of Jest API.
However, there is a problem with error message formatting. Given the following assertion:
It would be nice to do this in Jest as well. It also worth to mention that all asymmetric values have a special method .jasmineToString that gives pretty-printed value for message.
The text was updated successfully, but these errors were encountered:
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.
What is the current behavior?
Jasmine gives you special values that you can use at the right side of toEqual, to make the comparison more flexible. After #2213 this also will be landed as a part of Jest API.
However, there is a problem with error message formatting. Given the following assertion:
Produces the following error message:
What is the expected behavior?
I expect to have printed special format for asymmetric comparison value.
For example, pure Jasmine detects special value and formats it accordingly:
It would be nice to do this in Jest as well. It also worth to mention that all asymmetric values have a special method
.jasmineToString
that gives pretty-printed value for message.The text was updated successfully, but these errors were encountered: