From 3498fceb6a746a977fbd7ca42b6edf302330b269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 28 Nov 2019 18:07:25 +0100 Subject: [PATCH] Improve npm script hooks --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7cc4292a..2e90e5f0 100644 --- a/package.json +++ b/package.json @@ -71,9 +71,12 @@ "lint:fix": "eslint --fix app.js \"lib/**/*.js\" \"test/**/*.js\"", "lint": "eslint app.js \"lib/**/*.js\" \"test/**/*.js\"", "preinstall": "make pre-install", - "pretest": "NODE_ENV=test node test setup", + "pretest:setup": "npm run lint", + "test:setup": "NODE_ENV=test node test setup", + "pretest": "npm run test:setup", "test": "NODE_ENV=test mocha -t 5000 --exit --recursive test/acceptance test/integration test/unit", - "posttest": "NODE_ENV=test node test teardown", + "posttest": "npm run test:teardown", + "test:teardown": "NODE_ENV=test node test teardown", "update-internal-deps": "rm -rf node_modules && npm install", "docker-test": "./docker-test.sh", "docker-bash": "./docker-bash.sh"