-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
24 lines (23 loc) Β· 776 Bytes
/
Copy pathjest.config.ts
File metadata and controls
24 lines (23 loc) Β· 776 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
const config = {
preset: 'react-native',
testEnvironment: 'node',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
modulePaths: ['<rootDir>'],
moduleDirectories: ['node_modules'],
testMatch: ['**/__tests__/**/*.ts?(x)', '**/?(*.)+(spec|test).ts?(x)'],
modulePathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/node_modules/'],
globals: {
'ts-jest': { tsconfig: 'tsconfig.build.json' },
},
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|react-native-reanimated|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*)',
],
coveragePathIgnorePatterns: ['stories', 'node_modules'],
setupFiles: [
'./jest-setup.js',
'./node_modules/react-native-gesture-handler/jestSetup.js',
],
};
export default config;