-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (21 loc) · 1.14 KB
/
Copy pathjest.config.js
File metadata and controls
21 lines (21 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
testEnvironment: '<rootDir>/tests/custom-environment.js',
reporters: ['default', ['<rootDir>/tests/custom-reporter.js', {}]],
preset: 'react-native',
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'],
transformIgnorePatterns: ['node_modules/(?!((jest-)?react-native(-.*)?|@react-native(-community)?)|@rneui|silent-payments|@arkade-os)/'],
moduleNameMapper: {
'^expo/fetch$': '<rootDir>/util/expo-fetch-nodejs.js',
'^@react-native-menu/menu$': '<rootDir>/tests/__mocks__/@react-native-menu/menu.js',
'^@lodev09/react-native-true-sheet$': '<rootDir>/tests/__mocks__/@lodev09/react-native-true-sheet.js',
'^react-native-rate-app$': '<rootDir>/tests/__mocks__/react-native-rate-app.js',
'^react-native-draglist$': '<rootDir>/tests/__mocks__/react-native-draglist.js',
'^react-native-capture-protection$': '<rootDir>/tests/__mocks__/react-native-capture-protection.js',
'^react-native-blue-crypto$': '<rootDir>/tests/__mocks__/react-native-blue-crypto.js',
},
setupFiles: ['./tests/setup.js'],
watchPathIgnorePatterns: ['<rootDir>/node_modules'],
};