Skip to content

Commit cec3914

Browse files
Andrewpkfacebook-github-bot-8
authored andcommitted
Fix TestRunner.js to account for both --debug and --debug-brk
Summary: Fix TestRunner.js to account for both --debug and --debug-brk (the latter from webstorm) Closes #647 Reviewed By: svcscm Differential Revision: D2757229 fb-gh-sync-id: efa0e8e6fec100366b3a05acc977f83dafe44eeb
1 parent 34052d4 commit cec3914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DEFAULT_OPTIONS = {
5151
* Passing --debug off to child processes can screw with socket connections
5252
* of the parent process.
5353
*/
54-
nodeArgv: process.execArgv.filter(arg => arg !== '--debug'),
54+
nodeArgv: process.execArgv.filter(arg => arg.indexOf('--debug') == -1),
5555
};
5656

5757
const HIDDEN_FILE_RE = /\/\.[^\/]*$/;

0 commit comments

Comments
 (0)