We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d04957 commit 5f7da79Copy full SHA for 5f7da79
package-scripts.js
@@ -12,8 +12,11 @@ const path = require('path');
12
function test(testName, mochaParams) {
13
const coverageCommand = `nyc --no-clean --report-dir coverage/reports/${testName}`;
14
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';
+ if (process.env.CI) {
+ if (!/^only-/.test(testName)) {
17
+ mochaParams += ' --forbid-only';
18
+ }
19
+ mochaParams += ' --color';
20
}
21
return `${
22
process.env.COVERAGE ? coverageCommand : ''
0 commit comments