Skip to content

Commit

Permalink
Merge pull request #160 from deriv-com/shayan/fixed-test-coverage-rep…
Browse files Browse the repository at this point in the history
…ort-path-matcher

fix: fixed test coverage report wrong number
  • Loading branch information
shayan-deriv authored Apr 2, 2024
2 parents aa258e4 + 9e842aa commit c1240d2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
"\\.(gif|ttf|eot|svg|png)$": "<rootDir>/test/__mocks__/fileMock.js"
}
},
"collectCoverageFrom": [
"./src/components/*/*.{ts,tsx}",
"./src/hooks/*.{ts,tsx}",
"!./src/hooks/index.ts",
"!./node_modules/**",
"!./dist/**",
"!./stories/**",
"!/vite.config.ts",
"!./.storybook/**",
"!./coverage/**"
]
}
}

0 comments on commit c1240d2

Please sign in to comment.