-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathjest.config.js
More file actions
44 lines (44 loc) · 1.19 KB
/
Copy pathjest.config.js
File metadata and controls
44 lines (44 loc) · 1.19 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/jest-preset',
setupFiles: ['<rootDir>/src/__mocks__/jest.setup.ts'],
testMatch: ['<rootDir>/src/**/*.(test|spec).[jt]s?(x)'],
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|@react-navigation|react-native-screens|react-native-safe-area-context|react-native-gesture-handler|react-native-webview)/)',
],
collectCoverageFrom: [
'src/**/*.{cjs,js,jsx,mjs,ts,tsx}',
'!src/**/*.test.{cjs,js,jsx,mjs,mdx,ts,tsx}',
'!src/(__tests__|__mocks__)/*',
],
modulePathIgnorePatterns: [
'<rootDir>/example/node_modules',
'<rootDir>/lib/',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
coverageThreshold: {
global: {
branches: 53,
functions: 47,
lines: 58,
statements: 58,
},
'src/core/classes/Iterable.ts': {
statements: 90,
branches: 85,
functions: 95,
lines: 90,
},
'src/core/classes/IterableApi.ts': {
statements: 95,
branches: 70,
functions: 95,
lines: 95,
},
'src/core/classes/IterableConfig.ts': {
statements: 95,
branches: 90,
functions: 90,
lines: 95,
},
},
};