Skip to content

Commit 154431f

Browse files
authoredSep 22, 2019
Merge pull request #62 from rsxdalv/master
Fix argv leaking for that breaks debugging ports Fixes #53
2 parents b6eef70 + 906913d commit 154431f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (ops, coverage) {
5353
args.unshift('cover');
5454
}
5555
// Execute Mocha, stdin and stdout are inherited
56-
this._child = proc.fork(bin, args.concat(this._files), {cwd: cwd, env: env, execPath: execPath, silent: !!output});
56+
this._child = proc.fork(bin, args.concat(this._files), {cwd: cwd, env: env, execPath: execPath, silent: !!output, execArgv: []});
5757
// If there's an error running the process. See http://nodejs.org/api/child_process.html#child_process_event_error
5858
this._child.on('error', function (e) {
5959
that.emit('error', new PluginError('gulp-spawn-mocha', e));

0 commit comments

Comments
 (0)