Skip to content

Commit

Permalink
Merge pull request #280 from jamestalmage/pass-ava-appveyor-env-varia…
Browse files Browse the repository at this point in the history
…ble-in-tests

Put back AVA_APPVEYOR environment variable when running tests.
  • Loading branch information
sindresorhus committed Nov 29, 2015
2 parents f13ba2e + 9b77096 commit be946df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ function execCli(args, cb) {
args = [args];
}

var env = {};

if (process.env.AVA_APPVEYOR) {
env.AVA_APPVEYOR = 1;
}

childProcess.execFile(process.execPath, ['../cli.js'].concat(args), {
cwd: __dirname,
env: {}
env: env
}, cb);
}

Expand Down

0 comments on commit be946df

Please sign in to comment.