Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
Disable collecting test coverage by default
Browse files Browse the repository at this point in the history
This is a workaround since enabling coverage breaks sourceMaps.

See: kulshekhar/ts-jest#917
See: jestjs/jest#5739
  • Loading branch information
johnmartel committed May 1, 2020
1 parent 8807375 commit 1b212e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
@@ -1,6 +1,6 @@
// eslint-disable-next-line no-undef
module.exports = {
collectCoverage: true,
collectCoverage: false,
collectCoverageFrom: ['src/**/*.ts', '!lib/**', '!node_modules/**'],
coverageDirectory: 'coverage',
coverageThreshold: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -9,8 +9,8 @@
"clean": "rimraf lib",
"lint": "eslint src --max-warnings 0 --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"test": "jest",
"test:ci": "jest --ci"
"test": "jest --coverage",
"test:ci": "jest --coverage --ci"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b212e3

Please sign in to comment.