From ecedcbdc5ac5cf65bb32ca19664f0b52155b89d4 Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Fri, 29 Jun 2018 00:35:40 +0900 Subject: [PATCH] Added single-unit script that allows to run a single-unit testcase if necessary. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d7a0a539..77f8f905 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start": "cross-env NODE_ENV=development electron .", "pretest": "npm run lint", "test": "npm run test:unit", - "test:unit": "cross-env NODE_ENV=test babel-tape-runner -r ./unit-tests/_helpers/*.js unit-tests/*.js", + "test:unit": "npm run test:single-unit -- unit-tests/*.js", + "test:single-unit": "cross-env NODE_ENV=test babel-tape-runner -r ./unit-tests/_helpers/*.js", "test:integration": "node ./tests/index.js", "lint": "prettier-standard 'app/**/*.js' 'tests/**/*.js' 'lib/**/*.js' 'unit-tests/*.js' && standard", "deps": "cross-env DEBUG=* dependency-check . --detective precinct --entry app/index.js",