From 5f7da79cca7e3e16fd226253f16c74b2797b00f5 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Wed, 8 Apr 2020 17:20:06 -0700 Subject: [PATCH] try to force color in CI Signed-off-by: Christopher Hiller --- package-scripts.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package-scripts.js b/package-scripts.js index fe4395aed4..1a79fd05c1 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -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 : ''