-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
39 lines (35 loc) · 826 Bytes
/
jest.config.js
File metadata and controls
39 lines (35 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
preset: 'react-native',
setupFilesAfterEnv: [
'@testing-library/react-native/extend-expect',
'./setup.test.js'
],
coverageReporters: ['cobertura', 'text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 80,
functions: 70,
lines: 80,
statements: 80
}
},
testPathIgnorePatterns: [
'/node_modules/',
'/example/',
'/android/',
'/ios/',
'/lib/',
'./setup.test.js'
],
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native(-.*)?|@react-native(-community)?)/)'
]
};