Skip to content

Commit 6a9e8f1

Browse files
committed
🔧 update jest test coverage config
delete jest.config.json and move code into package.json. update config for accurate test coverage report generation
1 parent 34d8fc5 commit 6a9e8f1

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

jest.config.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
"last 1 safari version"
5858
]
5959
},
60+
"jest": {
61+
"collectCoverageFrom": ["<rootDir>/src/**/*.{js,jsx,tsx}"],
62+
"coveragePathIgnorePatterns": ["index.tsx", "reportWebVitals.tsx", "service-worker.tsx", "serviceWorkerRegistration.tsx", "<rootDir>/src/tests"]
63+
},
6064
"devDependencies": {
6165
"@emotion/babel-plugin": "^11.3.0",
6266
"@testing-library/jest-dom": "^5.11.10",

0 commit comments

Comments
 (0)