Skip to content
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

Show more context to where the error is #15

Open
jakeleventhal opened this issue Apr 25, 2020 · 3 comments
Open

Show more context to where the error is #15

jakeleventhal opened this issue Apr 25, 2020 · 3 comments

Comments

@jakeleventhal
Copy link

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.

@maasencioh
Copy link
Owner

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

@jakeleventhal
Copy link
Author

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
Copy link
Author

@maasencioh any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants