Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require full function coverage #287

Merged
merged 1 commit into from
Nov 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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