-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 705 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 705 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
module.exports = {
displayName: 'CodeLab',
verbose: true,
preset: 'jest-expo',
testMatch: ['**/?(*.)+(spec|test).js'],
collectCoverage: true,
clearMocks: true,
collectCoverageFrom: [
'src/**/*.{js,jsx}',
'!**/coverage/**',
'!**/node_modules/**',
'!**/babel.config.js',
'!**/jest.setup.js'
],
setupFiles: ['<rootDir>/jest/index.js'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|react-clone-referenced-element|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|sentry-expo|native-base))'
]
};