Skip to content

Commit

Permalink
fix(cov): istanbul path env
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Mar 21, 2017
1 parent a7b7ad8 commit 26961e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/cmd/cov.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ class CovCommand extends Command {
process.env.NODE_ENV = 'test';
process.env.TMPDIR = tmpDir;

const opt = {
env: Object.assign({}, process.env),
execArgv,
};

// istanbul coverage ignore
const excludes = argv.x || (process.env.COV_EXCLUDES && process.env.COV_EXCLUDES.split(',')) || [];
for (const exclude of excludes) {
Expand All @@ -60,6 +55,11 @@ class CovCommand extends Command {
const coverageDir = path.join(cwd, 'coverage');
yield rimraf(coverageDir);

const opt = {
env: Object.assign({}, process.env),
execArgv,
};

// save coverage-xxxx.json to $PWD/coverage
const covArgs = this.getCovArgs(argv);
debug('covArgs: %j', covArgs);
Expand Down

0 comments on commit 26961e0

Please sign in to comment.