-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (28 loc) · 1.17 KB
/
Copy pathjest.config.js
File metadata and controls
29 lines (28 loc) · 1.17 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
const getAliasConfig = require('./config/import-aliases');
module.exports = {
maxWorkers: 2,
fakeTimers: { doNotFake: ['setImmediate'] },
workerIdleMemoryLimit: '512MB',
modulePathIgnorePatterns: ['<rootDir>/.*worktrees/'],
testPathIgnorePatterns: [
'e2e',
'node_modules',
'<rootDir>/.*worktrees/',
'/__tests__/testHelpers\\.tsx$',
'/__tests__/mockedWatermelonDB\\.tsx$'
],
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|@rocket.chat/ui-kit|@rocket.chat/sdk|@rocket.chat/message-parser|tiny-events)'
],
preset: './jest.preset.js',
cacheDirectory: '<rootDir>/.jest-cache',
coverageDirectory: './coverage/',
collectCoverage: false,
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
...getAliasConfig().jest
},
setupFiles: ['react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: ['./jest.setup.js']
};