Skip to content

Commit

Permalink
Ignore Storybook stories in code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Sep 15, 2024
1 parent 9d4bfca commit fcf2259
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ module.exports = {
roots: ["<rootDir>/src", "<rootDir>/test"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
setupFilesAfterEnv: ["jest-extended", "./test/setup.ts"],
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
"!src/**/vendor/**",
"!src/**/*.stories.{js,jsx,ts,tsx}",
],
transform: {
"\\.[jt]sx?$": "ts-jest",
},
Expand Down

0 comments on commit fcf2259

Please sign in to comment.