Skip to content

Commit 4d92e67

Browse files
committed
remove coverage from unit
1 parent 9f3f4f6 commit 4d92e67

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

jest.config.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ module.exports = {
4040
// setupFiles: [`${__dirname}/setup/setup.js`],
4141
// setupFilesAfterEnv: [`${__dirname}/setup/setupAfterEnv.ts`],
4242
// coverage settings
43-
collectCoverage: true,
44-
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts', '!**/node_modules/**'],
45-
coverageThreshold: {
46-
"global": {
47-
"branches": 60,
48-
"functions": 80,
49-
"lines": 80,
50-
"statements": 80
51-
}
43+
collectCoverage: !NO_COVERAGE,
44+
coverageThreshold: NO_COVERAGE ? {} : {
45+
"global": {
46+
"branches": 60,
47+
"functions": 80,
48+
"lines": 80,
49+
"statements": 80
50+
}
5251
},
5352
coveragePathIgnorePatterns: ['/node_modules/', '\\.json$', '/__tests__/', '/stories/', '/\\.storybook/'],
5453

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lint": "eslint . --ext .ts",
2525
"lint-and-fix": "eslint . --ext .ts --fix",
2626
"test": "copyfiles -u 1 src/tests/data/* dist/; tsc && jest --runInBand",
27-
"test:unit": "tsc && jest --runInBand --testPathPattern=tests/unit"
27+
"test:unit": "NO_COVERAGE=1 tsc && jest --runInBand --testPathPattern=tests/unit"
2828
},
2929
"repository": "https://github.com/CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli.git",
3030
"author": "Jay Nanduri",

0 commit comments

Comments
 (0)