Skip to content

Commit

Permalink
chore(jest): improve coverage collection definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Tarca authored and matejtarca committed Oct 29, 2023
1 parent b13f1ab commit f8e1fd7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ const config = {
testEnvironment: "jest-environment-jsdom",
testMatch: ["**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)"],
testPathIgnorePatterns: ["/node_modules/", "/.next/", "/e2e/"],
collectCoverageFrom: ["**/*.{ts,tsx}", "!**/*.d.ts", "!**/node_modules/**"],
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/components/stories/**/*.{ts,tsx}",
"!src/app/**/*.{ts,tsx}",
"!**/*.d.ts",
"!**/node_modules/**"
],
coverageThreshold: {
global: {
branches: 5,
Expand Down

0 comments on commit f8e1fd7

Please sign in to comment.