Skip to content

chalk does not produce colored logs if run with --no-worker-threads #3183

Discussion options

You must be logged in to vote

Chalk detects color support based on its environment, my guess is that in a child process it doesn't inherit those details. You should be able to instantiate a Chalk instance that explicitly enables colors, or use environment variables or some of its other override options.

AVA does the same internally for its own Chalk instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevecaldwell77
Comment options

Answer selected by stevecaldwell77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #3182 on March 07, 2023 10:50.