jest-matcher-deep-close-to icon indicating copy to clipboard operation
jest-matcher-deep-close-to copied to clipboard

Show more context to where the error is

Open jakeleventhal opened this issue 5 years ago • 3 comments
trafficstars

In the regular jest .toEqual(), you see the line in the JSON that is off with all the surrounding JSON lines. In this package's .toBeDeepCloseTo() you only see the line in the JSON that doesn't match - with no context of where in the JSON it appears - not even the key.

jakeleventhal avatar Apr 25 '20 04:04 jakeleventhal

Thank you for your feedback, I'm updating this project in these days and I'll consider this

maasencioh avatar Apr 27 '20 14:04 maasencioh

Is there any update on this? Another example of this as a pain point is if object keys dont match

I get the following logs Screen Shot 2020-05-24 at 11 05 42 PM but if i use the native jest toEqual i get Screen Shot 2020-05-24 at 11 06 10 PM clearly the latter is much better in terms of visibility

jakeleventhal avatar May 25 '20 03:05 jakeleventhal

@maasencioh any update on this?

jakeleventhal avatar Sep 16 '21 12:09 jakeleventhal