whatwg / misc-server

Miscellaneous resources for the servers hosting *.whatwg.org domains
Other
22 stars 16 forks source link

Enable colors in mocha output using environment variable #132

Closed foolip closed 4 years ago

foolip commented 4 years ago

FORCE_COLOR also works for jest, so we can use this for participate.whatwg.org as well: https://github.com/whatwg/participate.whatwg.org/pull/113

foolip commented 4 years ago

I think this is not because of something that GitHub does deliberately, but with how command line tools detect support for colors. They assume that if the output isn't a TTY, then it won't support color. And if GitHub Actions pretended to be a TTY, more things might get stuck prompting for input.

https://github.com/actions/runner/issues/241 is a long thread where one might learn of any improvements to the situation.