chalk/supports-color

The issue has been closed
Colour support on TravisCI #92
Berkmann18 posted onGitHub
I'm currently working on a package where I'm planning on switching to chalk
and up to now TravisCI didn't have any problems with colours on the console (using colors
) but after pushing some code with passing tests (on the chalk
-based codebase), Travis seems to disable colours which make all the tests fail.
I've understood from this comment that TravisCI seems to non-determistically change supports-color
but I'm unsure if there's a fix for that or if I have to manually enable it using chalk.enable = true
or even set the chalk.level
to something other than 0
(which is what I get on the TravisCI log).
EDIT: if (!chalk.enabled) chalk.enabled = true;
doesn't help.