From 2e38c0ebae256366be2514453ea62a71fe7495c0 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sun, 9 Jul 2017 10:43:43 +0200 Subject: [PATCH] fix: update test scripts webpack build included --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 .",