generated from MarlonBeloMarques/react-native-lookfordrinks-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
38 lines (38 loc) · 1003 Bytes
/
jest.config.js
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
module.exports = {
preset: 'react-native',
verbose: true,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: true,
coverageThreshold: {
global: {
branches: 60,
functions: 15,
lines: 50,
statements: 50,
},
},
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/**/index.{js,ts}',
'!src/services/**',
'!src/themes/**',
'!src/assets/**',
'!src/navigation/**',
'!src/screens/**',
'!src/utils/enums/*',
'!src/api/request.ts',
'!src/stores/*',
'!src/**/*.d.ts',
],
transformIgnorePatterns: [],
modulePathIgnorePatterns: ['helpers', 'fixtures'],
setupFiles: [
'<rootDir>/jest.setup.js',
'./__mocks__/react-native-firebase.ts',
'./__mocks__/react-native-config.ts',
'./__mocks__/react-native-flash-message.tsx',
'./__mocks__/react-native-vector-icons.ts',
'./__mocks__/@react-native-async-storage/async-storage.ts',
'./__mocks__/formik.ts',
],
};