Skip to content

Commit

Permalink
Merge pull request #287 from G-Rath/enable-full-coverage
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
bmish committed Nov 26, 2022
2 parents 6e175c5 + d42f798 commit 9b15f1b
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 9b15f1b

Please sign in to comment.