sindresorhus / gulp-mocha

Run Mocha tests
MIT License
375 stars 91 forks source link

Set color option to what is supported by the current env #190

Closed johanblumenberg closed 6 years ago

johanblumenberg commented 6 years ago

By passing colors: true to mocha, colors will always be used, regardless of what the current tty supports. This means you get a bunch of garbage if for example piping the test output to a file.

This change will only pass colors: true to mocha if color is supported.