Skip to content

Commit 8a4515d

Browse files
committed
chore(jest): add coverage ignore patterns
1 parent 03cad70 commit 8a4515d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jest.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ const config: Config = {
1818
// The directory where Jest should output its coverage files
1919
coverageDirectory: 'coverage',
2020

21+
// An array of regexp pattern strings used to skip coverage collection
22+
coveragePathIgnorePatterns: [
23+
'src/global.d.ts',
24+
'src/index.ts',
25+
'src/components/__fixtures__',
26+
],
27+
2128
// Indicates which provider should be used to instrument code for coverage
2229
coverageProvider: 'v8',
2330

0 commit comments

Comments
 (0)