Skip to content

Commit

Permalink
try to force color in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 9, 2020
1 parent 0d04957 commit 5f7da79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package-scripts.js
Expand Up @@ -12,8 +12,11 @@ const path = require('path');
function test(testName, mochaParams) {
const coverageCommand = `nyc --no-clean --report-dir coverage/reports/${testName}`;
const mochaCommand = `node ${path.join('bin', 'mocha')}`; // Include 'node' and path.join for Windows compatibility
if (process.env.CI && !/^only-/.test(testName)) {
mochaParams += ' --forbid-only';
if (process.env.CI) {
if (!/^only-/.test(testName)) {
mochaParams += ' --forbid-only';
}
mochaParams += ' --color';
}
return `${
process.env.COVERAGE ? coverageCommand : ''
Expand Down

0 comments on commit 5f7da79

Please sign in to comment.