-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 896 Bytes
/
Copy pathjest.config.js
File metadata and controls
25 lines (25 loc) · 896 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
module.exports = {
testEnvironment: 'node',
modulePathIgnorePatterns: [
'<rootDir>/example/node_modules',
'<rootDir>/lib/',
],
transformIgnorePatterns: [
'node_modules/(?!(react-native-reanimated|react-native-gesture-handler|react-native-worklets)/)',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testMatch: ['**/__tests__/**/*.test.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
testPathIgnorePatterns: [
'/node_modules/',
'/__tests__/__mocks__/',
'/__tests__/setup.ts',
],
setupFilesAfterEnv: ['<rootDir>/src/__tests__/setup.ts'],
moduleNameMapper: {
'^react-native$': '<rootDir>/src/__tests__/__mocks__/react-native.ts',
'^react-native-reanimated$':
'<rootDir>/src/__tests__/__mocks__/reanimated.ts',
'^react-native-gesture-handler$':
'<rootDir>/src/__tests__/__mocks__/gesture-handler.ts',
},
};