From 891f1d850867dc36dcc69dbd2d1fca4afb7733f6 Mon Sep 17 00:00:00 2001 From: apurv-wednesday Date: Tue, 14 May 2024 18:05:53 +0530 Subject: [PATCH] feat: add coverage threshold --- jest.config.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index def000a..591c62f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -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: [