Skip to content

Commit d2119f5

Browse files
committed
ignore process.env when running CLI tests
I have the DEBUG variable set in my dotfiles and it made AVA output debug info and fail the tests.
1 parent fb98d5d commit d2119f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ function execCli(args, cb) {
99
args = [args];
1010
}
1111

12-
childProcess.execFile(process.execPath, ['../cli.js'].concat(args), {cwd: __dirname}, cb);
12+
childProcess.execFile(process.execPath, ['../cli.js'].concat(args), {
13+
cwd: __dirname,
14+
env: {}
15+
}, cb);
1316
}
1417

1518
test('ES2015 support', function (t) {

0 commit comments

Comments
 (0)