From 91f6db43cc924a8671cdd4a8d1a5ec7ade2510ff Mon Sep 17 00:00:00 2001 From: anjula-sack Date: Thu, 13 Jul 2023 22:29:49 +0530 Subject: [PATCH 1/2] EQA-9: Update the coverage script in package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 13d21c16..8726f14b 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "lint": "eslint src --ext js,jsx,ts,tsx --fix", "prettier": "prettier --write \"src/**/*.{ts,tsx}\"", "typescript": "tsc", - "test": "jest --config jest.config.js --passWithNoTests", + "test": "jest --config jest.config.js", "test-e2e": "playwright test", "verify": "concurrently 'yarn:lint' 'yarn:test' 'yarn:typescript'", - "coverage": "yarn test -- --coverage", + "coverage": "yarn test --coverage", "prepare": "husky install", "cipublish": "npm publish" }, From 111c7f2a47431e62b015dd9e4665adeb89b3840e Mon Sep 17 00:00:00 2001 From: anjula-sack Date: Thu, 13 Jul 2023 22:43:55 +0530 Subject: [PATCH 2/2] Update the jest config --- jest.config.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/jest.config.js b/jest.config.js index 41e840f9..cd8fa306 100644 --- a/jest.config.js +++ b/jest.config.js @@ -21,14 +21,6 @@ module.exports = { "!**/src/declarations.d.tsx", "!**/e2e/**", ], - coverageThreshold: { - global: { - statements: 80, - branches: 80, - functions: 80, - lines: 80, - }, - }, setupFilesAfterEnv: ["/src/setup-tests.ts"], testPathIgnorePatterns: [ "/packages/esm-form-entry-app",