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 5, 2020
1 parent 19c090b commit 7ff6f3b
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
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
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 7ff6f3b

Please sign in to comment.