diff --git a/package.json b/package.json index 3e9652ba4..352798bdb 100644 --- a/package.json +++ b/package.json @@ -113,11 +113,12 @@ "server" ], "scripts": { - "test": "npm run lint && mocha ./test/functional ./test/unit --reporter=spec --full-trace", - "test:coverage": "nyc mocha -R spec ./test/functional ./test/unit", + "pretest": "npm run lint && npm run build:webui", + "test": "npm run pretest && mocha ./test/functional ./test/unit --reporter=spec --full-trace", + "test:coverage": "nyc npm t", "coverage:html": "nyc report --reporter=html", "coverage:codecov": "nyc report --reporter=lcov | codecov", - "test-travis": "npm run lint && npm run test:coverage", + "test-travis": "npm run pretest && npm run test:coverage", "test-only": "mocha ./test/functional ./test/unit", "lint": "eslint .", "build-docker": "docker build -t verdaccio .",