Skip to content

Commit

Permalink
fix(launcher): command line args should be passed as-is to the runner
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juliemr committed Mar 4, 2014
1 parent 04c4cc0 commit a68627b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ var init = function(argv) {
if (childForks.length === 1) {
var childFork = childForks[0];
childFork.process = child.fork(
__dirname + "/runFromLauncher.js", [], {cwd: process.cwd()});
__dirname + "/runFromLauncher.js",
process.argv.slice(2),
{cwd: process.cwd()});
reportHeader_(childFork);

childFork.process.send({
Expand Down

0 comments on commit a68627b

Please sign in to comment.