Skip to content

Commit 80ffd99

Browse files
committed
jest config threshold
1 parent 4e1d5a2 commit 80ffd99

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jest.config.js

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

4755
globals: {

0 commit comments

Comments
 (0)