From 6911e3466c38f02d496fbf53af493e332df08e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 12 Jun 2018 11:13:15 +0200 Subject: [PATCH] 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. --- packages/http-server/package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/http-server/package.json b/packages/http-server/package.json index 3e15fb7f1f5e..eb76426fba5d 100644 --- a/packages/http-server/package.json +++ b/packages/http-server/package.json @@ -6,7 +6,6 @@ "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", @@ -14,9 +13,7 @@ "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",