test: Only check coverage on unit tests.

This commit is contained in:
Ruben Verborgh 2020-12-20 13:50:58 +01:00
parent dafc844007
commit 12cb26fe1e
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@ module.exports = {
], ],
testEnvironment: 'node', testEnvironment: 'node',
setupFilesAfterEnv: [ 'jest-rdf', '<rootDir>/test/util/SetupTests.ts' ], setupFilesAfterEnv: [ 'jest-rdf', '<rootDir>/test/util/SetupTests.ts' ],
collectCoverage: true,
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: [
'/dist/', '/dist/',
'/node_modules/', '/node_modules/',

View File

@ -54,8 +54,8 @@
"test": "npm run test:ts && npm run jest", "test": "npm run test:ts && npm run jest",
"test:deploy": "test/deploy/validate-package.sh", "test:deploy": "test/deploy/validate-package.sh",
"test:ts": "tsc -p test --noEmit", "test:ts": "tsc -p test --noEmit",
"test:integration": "jest --coverageThreshold '{}' test/integration", "test:integration": "jest test/integration",
"test:unit": "jest test/unit", "test:unit": "jest --collectCoverage test/unit",
"validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/config-default.json -f > /dev/null", "validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/config-default.json -f > /dev/null",
"version": "manual-git-changelog onversion", "version": "manual-git-changelog onversion",
"watch": "nodemon --watch \"dist/**/*.js\" --exec npm start" "watch": "nodemon --watch \"dist/**/*.js\" --exec npm start"