fix: update so that pre-commit hook only includes running unit tests as part of test coverage, but when run as part of ci integration tests will be run as part of test coverage
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@
|
||||
"tests:unit": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
|
||||
"tests:integration": "mocha -R progress -r ts-node/register -r integrationTests/mochaRootHooks.ts ./integrationTests/**/*.spec.ts",
|
||||
"tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts && mocha -R progress -r ts-node/register -r integrationTests/mochaRootHooks.ts ./integrationTests/**/*.spec.ts",
|
||||
"test-coverage": "nyc npm run tests",
|
||||
"test-coverage": "nyc npm run tests:unit",
|
||||
"test-coverage:ci": "nyc npm run tests",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user