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

feat: Add --no-color to cli #1849

merged 1 commit into from
Aug 15, 2022


Copy link

@jereklas jereklas commented Aug 13, 2022

There was no mention in the documentation that you could turn off colors in the console output. I then dug into what libraries the cli was using and discovered picocolor was adding the colors and that it could be turned off by either assigning the NO_COLOR environment variable, or by passing a --no-color cli option.

It made sense to expose the --no-color cli option so that users aren't forced into the environment variable route. This also adds an entry into the cli documentation to help users discover the feature.

@antfu antfu merged commit ec37655 into vitest-dev:main Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants