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

More readable logs #232

Open
borisdamevin opened this issue Jun 14, 2022 · 2 comments
Open

More readable logs #232

borisdamevin opened this issue Jun 14, 2022 · 2 comments

Comments

@borisdamevin
Copy link

borisdamevin commented Jun 14, 2022

Hi, @jgerigmeyer

Is possible to reduce the log when we have an error? Display only the x lines bafore and after the error, like git?

In bonus, can we display the line number on error? :D

Thank you!

@jgerigmeyer
Copy link
Member

@borisdamevin I'm open to that. Are you thinking of an option that users can use to configure full vs minimal logging?

I likely won't get to this for awhile, but I'd be happy to review a PR if you're willing to submit one. The relevant code is in src/index.ts, and we're currently using jest-diff to format the error messages.

@borisdamevin
Copy link
Author

Yes this kind of option.

I will think about try to made a PR.

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

No branches or pull requests

2 participants