Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d7c8f6

Browse files
committed
fixup: do not collect coverage on js files
This is safe because we don't allow JS in our tsconfigs! We only use JS for config files!
1 parent 2f13009 commit 1d7c8f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ module.exports = {
3131
},
3232
],
3333
collectCoverageFrom: [
34-
"<rootDir>/**/*.js",
34+
// included files
3535
"<rootDir>/**/*.ts",
3636
"<rootDir>/**/*.tsx",
37+
// excluded files
3738
"!<rootDir>/**/*.stories.tsx",
3839
"!<rootDir>/_jest/**/*.*",
3940
"!<rootDir>/api.ts",

0 commit comments

Comments
 (0)