Skip to content

Commit

Permalink
test: exclude fetch-wbw.ts from the code coverage collection
Browse files Browse the repository at this point in the history
since fetchWbw() is an IIFE (Immediately Invoked Function Expression)
which makes it harder to test
while returning not so much value to the stability of the code
  • Loading branch information
zainfathoni committed Sep 6, 2021
1 parent 677b4f1 commit cad0913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
"./(components|etc|lib|pages)/**/*.(ts|tsx|js|jsx)",
"!./(components|etc|lib|pages)/**/__tests__/**/*.test.(ts|tsx|js|jsx)",
"!./(components|etc|lib|pages)/**/__mocks__/**/*.(ts|tsx|js|jsx)",
"!./etc/fetchers/fetch-wbw.json",
"!./etc/fetchers/fetch-wbw.ts",
],
coverageThreshold: {
global: {
Expand Down

0 comments on commit cad0913

Please sign in to comment.