Skip to content

Commit

Permalink
test(next-drupal): add tooling to test code coverage
Browse files Browse the repository at this point in the history
Fixes #609
  • Loading branch information
JohnAlbin committed Nov 22, 2023
1 parent 22d5742 commit 077d833
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ const config: Config.InitialOptions = {
isolatedModules: true,
},
},
coverageProvider: "v8",
collectCoverage: true,
collectCoverageFrom: ["./packages/*/src/**"],
coveragePathIgnorePatterns: ["./packages/next-drupal/src/get-*"],
coverageThreshold: {
global: {
statements: 63.11,
branches: 72.7,
functions: 76.56,
lines: 63.11,
},
},
}

export default config

0 comments on commit 077d833

Please sign in to comment.