-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (31 loc) · 1.35 KB
/
Copy pathjest.config.js
File metadata and controls
31 lines (31 loc) · 1.35 KB
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
30
31
module.exports = {
preset: 'jest-expo',
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|@walletconnect/.*)',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts', '!src/**/index.ts'],
testMatch: ['**/__tests__/**/*.(test|spec).[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
modulePathIgnorePatterns: ['<rootDir>/e2e'],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/e2e/',
'<rootDir>/src/animations/',
'<rootDir>/app/',
'<rootDir>/backend/',
'<rootDir>/developer-portal/',
'<rootDir>/contracts/',
'<rootDir>/babel.config.test.js',
],
moduleNameMapper: {
'^bullmq$': '<rootDir>/backend/shared/queue/__mocks__/bullmq.ts',
'^@/(.*)$': '<rootDir>/src/$1',
'^@react-native-community/netinfo$':
'<rootDir>/src/__mocks__/@react-native-community/netinfo.js',
'^@react-native-async-storage/async-storage$':
'<rootDir>/src/__mocks__/@react-native-async-storage/async-storage.js',
ViewConfigIgnore$: '<rootDir>/src/__mocks__/ViewConfigIgnore.js',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testEnvironment: 'node',
};