Skip to content

Commit

Permalink
replace merge with object spread
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Mar 26, 2021
1 parent 0639927 commit 9333918
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/babel-cli/test/index.js
Expand Up @@ -3,7 +3,6 @@ import * as helper from "@babel/helper-fixtures";
import rimraf from "rimraf";
import { sync as makeDirSync } from "make-dir";
import child from "child_process";
import merge from "lodash/merge";
import path from "path";
import fs from "fs";
import { fileURLToPath } from "url";
Expand Down Expand Up @@ -221,7 +220,7 @@ fs.readdirSync(fixtureLoc).forEach(function (binName) {

const testLoc = path.join(suiteLoc, testName);

const opts = {
let opts = {
args: [],
};

Expand All @@ -247,7 +246,7 @@ fs.readdirSync(fixtureLoc).forEach(function (binName) {

delete taskOpts.os;
}
merge(opts, taskOpts);
opts = { args: [], ...taskOpts };
}

["stdout", "stdin", "stderr"].forEach(function (key) {
Expand Down

0 comments on commit 9333918

Please sign in to comment.