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

Make unit test output friendlier #7598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ssg
Copy link

@ssg ssg commented Jan 26, 2025

yarn test outputs a huge chunk of stack trace and console error while running unit tests although the tests pass in the end:

Yarn console output before changes

Although that's expected, a successful unit test run shouldn't output anything at all and devs should be seeing only the green lights. This change mocks the expected console error as it's not needed in the output. The unit test output looks much more pleasing and easy on the eye like this:

Yarn console output after changes

This change aims to reduce developer friction and blidness to actual errors in the future.

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

Successfully merging this pull request may close these issues.

1 participant