Skip to content

Commit 6911e34

Browse files
committed
fix(http-server): simplify test-related scripts
Remove "acceptance", "integration" and "unit" scripts from package.json, we are not using them. Simplify "test" script to run all test files from the "test" directory, instead of enumerating "unit", "integration" and "acceptance". This removes a warning printed by mocha about "unit" and "acceptance" directories not found.
1 parent 1e21f0b commit 6911e34

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/http-server/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66
"node": ">=8"
77
},
88
"scripts": {
9-
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
109
"build": "npm run build:dist8 && npm run build:dist10",
1110
"build:apidocs": "lb-apidocs",
1211
"build:current": "lb-tsc",
1312
"build:dist8": "lb-tsc es2017",
1413
"build:dist10": "lb-tsc es2018",
1514
"clean": "lb-clean loopback-http-server*.tgz dist* package api-docs",
1615
"pretest": "npm run build:current",
17-
"integration": "lb-mocha \"DIST/test/integration/**/*.js\"",
18-
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/integration/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
19-
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
16+
"test": "lb-mocha \"DIST/test/**/*.js\"",
2017
"verify": "npm pack && tar xf loopback-http-server*.tgz && tree package && npm run clean"
2118
},
2219
"author": "IBM",

0 commit comments

Comments
 (0)