From 46c0cd279d6860bdf1e8d6c51455af6fe874d9c8 Mon Sep 17 00:00:00 2001 From: Austin Fahsl Date: Thu, 28 Jul 2022 15:51:41 -0400 Subject: [PATCH] chore(create): remove quotes from generated test script --- .../__tests__/__snapshots__/create-command.test.js.snap | 8 ++++---- commands/create/lib/lerna-module-data.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/create/__tests__/__snapshots__/create-command.test.js.snap b/commands/create/__tests__/__snapshots__/create-command.test.js.snap index 7fa6e371c21..5cd0776b21d 100644 --- a/commands/create/__tests__/__snapshots__/create-command.test.js.snap +++ b/commands/create/__tests__/__snapshots__/create-command.test.js.snap @@ -134,7 +134,7 @@ index SHA..SHA + "url": "git+https://github.com/test/test.git" + }, + "scripts": { -+ "test": "node \\"./__tests__/my-cli.test.js\\"" ++ "test": "node ./__tests__/my-cli.test.js" + }, + "dependencies": { + "yargs": "^1.0.0-mocked" @@ -232,7 +232,7 @@ index SHA..SHA + "url": "git+https://github.com/test/test.git" + }, + "scripts": { -+ "test": "node \\"./__tests__/my-es-cli.test.js\\"" ++ "test": "node ./__tests__/my-es-cli.test.js" + }, + "dependencies": { + "yargs": "^1.0.0-mocked" @@ -354,7 +354,7 @@ index SHA..SHA + "url": "git+https://github.com/test/test.git" + }, + "scripts": { -+ "test": "node \\"./__tests__/my-pkg.test.js\\"" ++ "test": "node ./__tests__/my-pkg.test.js" + }, + "bugs": { + "url": "https://github.com/test/test/issues" @@ -419,7 +419,7 @@ index SHA..SHA + "url": "git+https://github.com/test/test.git" + }, + "scripts": { -+ "test": "node \\"./__tests__/my-pkg.test.js\\"" ++ "test": "node ./__tests__/my-pkg.test.js" + }, + "type": "module", + "bugs": { diff --git a/commands/create/lib/lerna-module-data.js b/commands/create/lib/lerna-module-data.js index d65dcae0f1f..a9063d96417 100644 --- a/commands/create/lib/lerna-module-data.js +++ b/commands/create/lib/lerna-module-data.js @@ -193,7 +193,7 @@ if (!this.package.repository) { if (!this.package.scripts) { exports.scripts = { - test: `node "./__tests__/${name}.test.js"`, + test: `node ./__tests__/${name}.test.js`, }; }