Skip to content

Commit 53efb3a

Browse files
committed
fix coverage in unit again
1 parent 4d92e67 commit 53efb3a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jest.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ module.exports = {
4040
// setupFiles: [`${__dirname}/setup/setup.js`],
4141
// setupFilesAfterEnv: [`${__dirname}/setup/setupAfterEnv.ts`],
4242
// coverage settings
43-
collectCoverage: !NO_COVERAGE,
44-
coverageThreshold: NO_COVERAGE ? {} : {
45-
"global": {
43+
collectCoverage: true,
44+
coverageThreshold: {
45+
"global": {
4646
"branches": 60,
4747
"functions": 80,
4848
"lines": 80,
4949
"statements": 80
50-
}
51-
},
50+
}
51+
},
5252
coveragePathIgnorePatterns: ['/node_modules/', '\\.json$', '/__tests__/', '/stories/', '/\\.storybook/'],
5353

5454
globals: {

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": "NO_COVERAGE=1 tsc && jest --runInBand --testPathPattern=tests/unit"
27+
"test:unit": "tsc && jest --runInBand --testPathPattern=tests/unit --no-coverage"
2828
},
2929
"repository": "https://github.com/CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli.git",
3030
"author": "Jay Nanduri",

0 commit comments

Comments
 (0)