-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
29 lines (29 loc) · 1.05 KB
/
jest.config.js
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
module.exports = {
globals: {
__DEV__: false,
},
silent: true,
testEnvironment: 'node',
preset: 'jest-expo',
setupFilesAfterEnv: [
'@testing-library/jest-native/extend-expect',
'./jest.setup.js',
],
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
],
moduleNameMapper: {
// "@assets/(.*)": "<rootDir>/src/assets/$1",
'@components/(.*)': '<rootDir>/src/components/$1',
'@constants/(.*)': '<rootDir>/src/constants/$1',
'@contexts/(.*)': '<rootDir>/src/contexts/$1',
'@models/(.*)': '<rootDir>/src/models/$1',
'@hooks/(.*)': '<rootDir>/src/hooks/$1',
'@routes/(.*)': '<rootDir>/src/routes/$1',
'@pages/(.*)': '<rootDir>/src/pages/$1',
'@services/(.*)': '<rootDir>/src/services/$1',
'@i18n/(.*)': '<rootDir>/src/i18n/$1',
'@utils/(.*)': '<rootDir>/src/utils/$1',
},
reporters: ['default'],
};