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

Option to disable coloured output #841

Closed
4 tasks done
robcaldecott opened this issue Feb 23, 2022 · 3 comments
Closed
4 tasks done

Option to disable coloured output #841

robcaldecott opened this issue Feb 23, 2022 · 3 comments

Comments

@robcaldecott
Copy link
Contributor

Clear and concise description of the problem

When running tests on CI (in our case Bamboo) the default output is in colour which causes some ugly output when viewing the raw logs:

image

Suggested solution

Peraps disable colours when CI=true or add a new CLI option to do so.

Alternative

No response

Additional context

We're running tests for CI like this:

CI=true vitest run --coverage

Validations

@Demivan
Copy link
Member

Demivan commented Feb 23, 2022

We are using picocolors for coloring terminal input. You can use NO_COLOR to disable colors.
Most of the CI runners are already setting this

@robcaldecott
Copy link
Contributor Author

Oh perfect, thanks @Demivan !

@Demivan
Copy link
Member

Demivan commented Feb 23, 2022

If this works you can close the issue

chaii3 pushed a commit to chaii3/vitest that referenced this issue May 13, 2022
* feat: add onFetchError in UseFetchOptions

* docs: add onFetchError usage
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants