We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b463346 commit 6254c67Copy full SHA for 6254c67
bin/asinit
@@ -8,6 +8,8 @@ const colors = require("../cli/util/colors");
8
const version = require("../package.json").version;
9
const options = require("../cli/util/options");
10
11
+const npmDefaultTest = "echo \"Error: no test specified\" && exit 1";
12
+
13
const commands = {
14
"npm": {
15
install: "npm install",
@@ -344,7 +346,7 @@ function ensurePackageJson() {
344
346
pkg["scripts"] = scripts;
345
347
updated = true;
348
}
- if (!scripts["test"]) {
349
+ if (!scripts["test"] || scripts["test"] == npmDefaultTest) {
350
scripts["test"] = "node tests";
351
352
0 commit comments