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

Use require('util').inspect.custom for diffs #86

Closed
dmaretskyi opened this issue Dec 3, 2020 · 1 comment
Closed

Use require('util').inspect.custom for diffs #86

dmaretskyi opened this issue Dec 3, 2020 · 1 comment

Comments

@dmaretskyi
Copy link

dmaretskyi commented Dec 3, 2020

Node uses inspect.custom to let classes define custom formatting when console logged.

It would be nice for earl to also follow that to reduce verbosity if diffs.

@krzkaczor
Copy link
Contributor

Earl relies on mocha to print out readable diffs ie. throwing an AssertionError with expected and actual objects. Rest is done by a test runner. The only thing that earl does is really replacing matchers with exact values for cleaner diffs.

I am gonna close this as I don't think we can do anything about it.

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