Skip to content

Commit

Permalink
Directly spawn node. This won't work with PnP
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 11, 2020
1 parent 49e8a30 commit db21680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/babel-cli/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ const buildTest = function(binName, testName, opts) {
return function(callback) {
saveInFiles(opts.inFiles);

let args = ["node", binLoc];
let args = [binLoc];

if (binName !== "babel-external-helpers") {
args.push("--presets", presetLocs, "--plugins", pluginLocs);
}

args = args.concat(opts.args);

const spawn = child.spawn("yarn", args);
const spawn = child.spawn("node", args);

let stderr = "";
let stdout = "";
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-node/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ const buildTest = function(binName, testName, opts) {
return function(callback) {
saveInFiles(opts.inFiles);

let args = ["node", binLoc];
let args = [binLoc];

args.push("--presets", presetLocs, "--plugins", pluginLocs);
args.push("--only", "../../../../packages/*/test");

args = args.concat(opts.args);

const spawn = child.spawn("yarn", args);
const spawn = child.spawn("node", args);

let stderr = "";
let stdout = "";
Expand Down

0 comments on commit db21680

Please sign in to comment.