Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit a68627b

Browse files
committed
fix(launcher): command line args should be passed as-is to the runner
This allows users to continue to use optimist (or other process.argv) processing within their tests and grab values from the command line. Closes #571.
1 parent 04c4cc0 commit a68627b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/launcher.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ var init = function(argv) {
108108
if (childForks.length === 1) {
109109
var childFork = childForks[0];
110110
childFork.process = child.fork(
111-
__dirname + "/runFromLauncher.js", [], {cwd: process.cwd()});
111+
__dirname + "/runFromLauncher.js",
112+
process.argv.slice(2),
113+
{cwd: process.cwd()});
112114
reportHeader_(childFork);
113115

114116
childFork.process.send({

0 commit comments

Comments
 (0)