Skip to content

Commit

Permalink
test: require full function coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Nov 26, 2022
1 parent 6e175c5 commit d42f798
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ const jestConfig = {
'^(\\.{1,2}/.*)\\.js$': '$1',
'#(.*)': '<rootDir>/node_modules/$1',
},
coveragePathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/test/'],
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/test/',
// these files are created by the test suite in the in-memory fs,
// which test has access to and so counts in coverage by default
'<rootDir>/index.js',
'<rootDir>/index-foo.js',
],
coverageThreshold: {
global: {
branches: 100,
functions: 80, // TODO: Should be 100% but unclear what function is missing coverage.
functions: 100,
lines: 100,
statements: 100,
},
Expand Down

0 comments on commit d42f798

Please sign in to comment.