From 9333918434a06f8cf7c32a683b7be3141dbec049 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Fri, 26 Mar 2021 18:03:24 -0400 Subject: [PATCH] replace merge with object spread --- packages/babel-cli/test/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/babel-cli/test/index.js b/packages/babel-cli/test/index.js index d4a096e63d22..939c1706caaf 100644 --- a/packages/babel-cli/test/index.js +++ b/packages/babel-cli/test/index.js @@ -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"; @@ -221,7 +220,7 @@ fs.readdirSync(fixtureLoc).forEach(function (binName) { const testLoc = path.join(suiteLoc, testName); - const opts = { + let opts = { args: [], }; @@ -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) {