Skip to content

Commit 9db81b4

Browse files
author
luochao
committed
chore(jest config): jest coverage 配置忽略一些文件
1 parent af4f556 commit 9db81b4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jest.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ module.exports = {
1818
transformIgnorePatterns: ['node_modules/(?!(html-void-elements)/)'],
1919
setupFilesAfterEnv: ['<rootDir>/tests/setup/index.ts'],
2020
collectCoverageFrom: ['<rootDir>/packages/**/src/**/*.(ts|tsx)'],
21-
coveragePathIgnorePatterns: ['dist', 'locale'],
21+
coveragePathIgnorePatterns: [
22+
'dist',
23+
'locale',
24+
'index.ts',
25+
'config.ts',
26+
'browser-polyfill.ts',
27+
'node-polyfill.ts',
28+
],
2229
}

0 commit comments

Comments
 (0)