Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6bb0ac6

Browse files
committed
normalize ignore patterns in jest
1 parent cb32cb2 commit 6bb0ac6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

repo/jest.config.sf.js

+13-4
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,30 @@ let sfConfig = {
66
collectCoverageFrom: [
77
'**/lib/**/*.js'
88
],
9+
coveragePathIgnorePatterns: [
10+
'<rootDir>/node_modules/'
11+
],
912
coverageReporters: [
1013
'json',
1114
'html',
1215
'lcov',
1316
'text'
1417
],
15-
transformIgnorePatterns: [
16-
'.*/node_modules/.*'
17-
],
1818
notify: false,
1919
testEnvironment: 'node',
2020
testMatch: [
2121
'**/test/**/*.test.js'
2222
],
23-
transform: {}
23+
testPathIgnorePatterns: [
24+
'<rootDir>/node_modules/'
25+
],
26+
transform: {},
27+
transformIgnorePatterns: [
28+
'<rootDir>/node_modules/'
29+
],
30+
watchPathIgnorePatterns: [
31+
'<rootDir>/node_modules/'
32+
]
2433
};
2534

2635
// only add babel-jest transformer if babel-jest is a top-level dependency

0 commit comments

Comments
 (0)