-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
44 lines (38 loc) · 1.07 KB
/
Copy pathjest.config.js
File metadata and controls
44 lines (38 loc) · 1.07 KB
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
40
41
42
43
44
module.exports = {
preset: 'react-native',
transformIgnorePatterns: [
'node_modules/(?!(react-native' +
'|@react-native' +
'|@react-native-async-storage' +
'|@react-navigation' +
'|@reduxjs' +
'|react-redux' +
'|immer' +
'|react-native-paper' +
'|react-native-vector-icons' +
'|react-native-worklets' +
'|react-native-reanimated' +
'|react-native-gesture-handler' +
'|react-native-screens' +
'|react-native-safe-area-context' +
')/)',
],
moduleNameMapper: {
'@react-native-clipboard/clipboard':
'<rootDir>/__mocks__/@react-native-clipboard/clipboard.js',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/e2e/', '<rootDir>/integration/'],
setupFiles: ['./jest.setup.js'],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.tsx'],
coverageReporters: ['text'],
coverageThreshold: {
global: {
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
},
};