How to force color in CLI output? #3351
-
I am piping output to @roarr/cli so that we could format the logs that the tests produce. However, piping logs to another service forces I know there is |
Beta Was this translation helpful? Give feedback.
Answered by
AriPerkkio
May 11, 2023
Replies: 1 comment 1 reply
-
Does $ FORCE_COLOR=1 pnpm test | less
> [email protected] test /x/vitest-example-project
> vitest run
ESC[7mESC[1mESC[36m RUN ESC[39mESC[22mESC[27m ESC[36mv0.31.0ESC[39m ESC[90m/x/vitest-example-projectESC[39m
.... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gajus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does
FORCE_COLOR=1
environment variable work for you? E.g: