Skip to content

Commit 94fb45b

Browse files
committed
(test): add code coverage configuration
- ignore test-utils/ directory in coverage - update gitignore with coverage/ directory - and fix missing newline
1 parent 64842d0 commit 94fb45b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
build/
2+
coverage/
23

34
npm-debug.log*
45
node_modules/
56

67
*.tgz
78

89
.DS_Store
9-
*~
10+
*~

jest.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ module.exports = {
1010
transform: {
1111
// use babel-jest@23 for babel@6 support (https://github.com/facebook/jest/issues/8230#issuecomment-479470547)
1212
'\\.js$': require.resolve('babel-jest')
13-
}
13+
},
14+
coveragePathIgnorePatterns: [
15+
'/node_modules/', // default
16+
'<rootDir>/test-utils/' // ignore test-utils
17+
]
1418
}

0 commit comments

Comments
 (0)