Skip to content

Commit

Permalink
fix(http-server): simplify test-related scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bajtos committed Jun 12, 2018
1 parent 1e21f0b commit 6911e34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/http-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
"node": ">=8"
},
"scripts": {
"acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"",
"build": "npm run build:dist8 && npm run build:dist10",
"build:apidocs": "lb-apidocs",
"build:current": "lb-tsc",
"build:dist8": "lb-tsc es2017",
"build:dist10": "lb-tsc es2018",
"clean": "lb-clean loopback-http-server*.tgz dist* package api-docs",
"pretest": "npm run build:current",
"integration": "lb-mocha \"DIST/test/integration/**/*.js\"",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/integration/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"test": "lb-mocha \"DIST/test/**/*.js\"",
"verify": "npm pack && tar xf loopback-http-server*.tgz && tree package && npm run clean"
},
"author": "IBM",
Expand Down

0 comments on commit 6911e34

Please sign in to comment.