@elliemae/pui-cli 6.15.2 → 6.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli-commands/test.js +2 -2
- package/package.json +1 -1
package/lib/cli-commands/test.js
CHANGED
|
@@ -4,7 +4,7 @@ const { exec, logError, logSuccess } = require('./utils');
|
|
|
4
4
|
const { CI = false } = process.env;
|
|
5
5
|
|
|
6
6
|
async function test(commandOptions) {
|
|
7
|
-
await exec(`cross-env
|
|
7
|
+
await exec(`cross-env NODE_ENV=test jest ${commandOptions}`);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line max-statements
|
|
@@ -12,7 +12,7 @@ async function handler(argv) {
|
|
|
12
12
|
let commandOptions = '--coverage';
|
|
13
13
|
if (argv.fix) commandOptions = '-u';
|
|
14
14
|
else if (argv.watch) commandOptions = '--watchAll';
|
|
15
|
-
if (CI) commandOptions += ' --ci --runInBand';
|
|
15
|
+
if (CI) commandOptions += ' --ci --runInBand --no-colors';
|
|
16
16
|
else commandOptions += ' --maxWorkers=50%';
|
|
17
17
|
if (argv.p) commandOptions += ' --passWithNoTests';
|
|
18
18
|
if (argv.r) commandOptions += ' --bail --findRelatedTests';
|