Skip to content

Commit 5f7da79

Browse files
committed
try to force color in CI
Signed-off-by: Christopher Hiller <[email protected]>
1 parent 0d04957 commit 5f7da79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package-scripts.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ const path = require('path');
1212
function test(testName, mochaParams) {
1313
const coverageCommand = `nyc --no-clean --report-dir coverage/reports/${testName}`;
1414
const mochaCommand = `node ${path.join('bin', 'mocha')}`; // Include 'node' and path.join for Windows compatibility
15-
if (process.env.CI && !/^only-/.test(testName)) {
16-
mochaParams += ' --forbid-only';
15+
if (process.env.CI) {
16+
if (!/^only-/.test(testName)) {
17+
mochaParams += ' --forbid-only';
18+
}
19+
mochaParams += ' --color';
1720
}
1821
return `${
1922
process.env.COVERAGE ? coverageCommand : ''

0 commit comments

Comments
 (0)