From 7b8ca68fc8fc122c7a3ccd8bf0b0f9e7d32b0aa0 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 20 Aug 2022 13:56:11 +0200 Subject: [PATCH] Updated test commands to omit system tests, no exit code --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 49eac02..f7ce9b9 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,10 @@ "scripts": { "start": "yarn cross-env SEASONED_CONFIG=configurations/production.json NODE_ENV=production babel-node src/webserver/server.js", "dev": "yarn cross-env SEASONED_CONFIG=configurations/development.json NODE_ENV=development babel-node src/webserver/server.js", - "test": "cross-env SEASONED_CONFIG=configurations/test.json NODE_PATH=. mocha --require @babel/register --recursive tests/unit tests/system", - "coverage": "cross-env SEASONED_CONFIG=configurations/test.json NODE_PATH=. nyc mocha --require @babel/register --recursive test && nyc report --reporter=text-lcov | coveralls", - "lint": "eslint src", + "test": "cross-env SEASONED_CONFIG=configurations/test.json mocha --recursive tests/unit", + "coverage:upload": "cross-env SEASONED_CONFIG=configurations/test.json mocha --recursive tests/unit && nyc report --reporter=text-lcov | coveralls", + "coverage": "cross-env SEASONED_CONFIG=configurations/test.json mocha --recursive tests/unit && nyc report", + "lint": "eslint src tests", "update": "cross-env SEASONED_CONFIG=configurations/development.json NODE_PATH=. node scripts/updateRequestsInPlex.js", "docs": "yarn apiDocs; yarn classDocs", "apiDocs": "",