test: Only show coverage details with unit tests.

This commit is contained in:
Ruben Verborgh 2021-01-26 23:25:46 +01:00 committed by Joachim Van Herwegen
parent 93e53b3d24
commit 6346760d1d
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -47,7 +47,7 @@
"docker:start": "./test/docker/docker-start.sh",
"docker:stop": "./test/docker/docker-stop.sh",
"docs": "typedoc",
"jest": "jest",
"jest": "jest --coverageReporters text-summary --",
"lint": "eslint . --cache --ignore-path .gitignore",
"prepare": "npm run build",
"start": "node ./bin/server.js",
@ -55,9 +55,9 @@
"test": "npm run test:ts && npm run jest",
"test:deploy": "test/deploy/validate-package.sh",
"test:ts": "tsc -p test --noEmit",
"test:integration": "jest test/integration",
"test:integration": "jest --coverageReporters text-summary -- test/integration",
"test:unit": "jest --config=./jest.coverage.config.js test/unit",
"test:watch": "jest --watch test/unit",
"test:watch": "jest --coverageReporters none --watch test/unit",
"validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/config-default.json -f > /dev/null",
"version": "manual-git-changelog onversion",
"watch": "nodemon --watch \"dist/**/*.js\" --exec npm start"