Skip to content

Commit c1240d2

Browse files
authored
Merge pull request #160 from deriv-com/shayan/fixed-test-coverage-report-path-matcher
fix: fixed test coverage report wrong number
2 parents aa258e4 + 9e842aa commit c1240d2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@
117117
"moduleNameMapper": {
118118
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
119119
"\\.(gif|ttf|eot|svg|png)$": "<rootDir>/test/__mocks__/fileMock.js"
120-
}
120+
},
121+
"collectCoverageFrom": [
122+
"./src/components/*/*.{ts,tsx}",
123+
"./src/hooks/*.{ts,tsx}",
124+
"!./src/hooks/index.ts",
125+
"!./node_modules/**",
126+
"!./dist/**",
127+
"!./stories/**",
128+
"!/vite.config.ts",
129+
"!./.storybook/**",
130+
"!./coverage/**"
131+
]
121132
}
122133
}

0 commit comments

Comments
 (0)