Skip to content

Commit

Permalink
feat: add coverage threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
apurv-wednesday committed May 14, 2024
1 parent 61154cc commit 891f1d8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ const createJestConfig = nextJest({ dir: "./" });
const jestConfig: Config = {
preset: "ts-jest",
testEnvironment: "jsdom",
// uncomment later after adding tests
// coverageThreshold: {
// global: {
// statements: 90,
// branches: 90,
// functions: 90,
// lines: 90,
// },
// },
coverageThreshold: {
global: {
statements: 60,
branches: 49,
lines: 64,
functions: 54,
},
},
coverageReporters: ["json-summary", "text", "lcov"],
collectCoverageFrom: ["src/**/**/*.{js,jsx,ts,tsx}"],
reporters: [
Expand Down

0 comments on commit 891f1d8

Please sign in to comment.