-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (24 loc) · 1.11 KB
/
Copy pathjest.config.js
File metadata and controls
28 lines (24 loc) · 1.11 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
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}', 'chaos/**/*.ts', '!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>/load-tests/',
'<rootDir>/src/animations/',
],
moduleNameMapper: {
'^bullmq$': '<rootDir>/backend/shared/queue/__mocks__/bullmq.ts',
'^@/(.*)$': '<rootDir>/src/$1',
'^@react-native-community/netinfo$': '<rootDir>/src/__mocks__/@react-native-community/netinfo.js',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// Snapshot serialization is handled by `jest-expo` preset.
testEnvironment: 'node',
};