forked from alichherawalla/off-grid-mobile-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 922 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 922 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 = {
preset: 'react-native',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.tsx'],
testPathIgnorePatterns: ['/node_modules/', '/android/', '/ios/', '/e2e/', 'App.test.tsx'],
moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1' },
transformIgnorePatterns: ['node_modules/(?!(react-native|@react-native|@react-navigation|react-native-.*|@react-native-.*|moti|@motify|@gorhom|@shopify|@ronradtke|@op-engineering)/)',],
testEnvironment: 'node',
clearMocks: true,
verbose: true,
testTimeout: 10000,
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/index.ts',
'!src/types/**',
'!src/navigation/**',
],
coverageReporters: ['text', 'text-summary', 'lcov', 'json-summary'],
coverageThreshold: {
global: {
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
};