Skip to content

Commit

Permalink
runJest: always force color to 0
Browse files Browse the repository at this point in the history
Otherwise, having options.nodePath undefined causes tests to fail.
  • Loading branch information
wmertens committed Apr 13, 2018
1 parent a0bf957 commit 3919925
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration-tests/runJest.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ function runJest(
);
}

const env = options.nodePath
? Object.assign({}, process.env, {
FORCE_COLOR: 0,
NODE_PATH: options.nodePath,
})
: process.env;
const env = Object.assign({}, process.env, {
FORCE_COLOR: 0,
NODE_PATH: options.nodePath || process.env.NODE_PATH,
});

const result = spawnSync(JEST_PATH, args || [], {
cwd: dir,
env,
Expand Down

0 comments on commit 3919925

Please sign in to comment.