-
Notifications
You must be signed in to change notification settings - Fork 62
/
jest.config.js
32 lines (31 loc) · 1.08 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
30
31
module.exports = {
globalSetup: '<rootDir>/test/jest-global.js',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
'preset': 'react-native',
'automock': false,
'resetMocks': false,
'transform': {
'^.+\\.(js|ts|tsx)$': 'babel-jest',
'^[./a-zA-Z0-9$_-]+\\.(gif|jpg|jpeg|png|svg)$': 'jest-transform-stub',
},
'moduleNameMapper': {
'^.+.(svg)$': '<rootDir>/test/svg-mock.js',
'^@jetbrains/icons/(.*)$': '<rootDir>/test/svg-mock.js',
},
'setupFilesAfterEnv': [
'<rootDir>/test/jest-setup.js',
'@testing-library/jest-native/extend-expect',
'./node_modules/react-native-gesture-handler/jestSetup.js',
],
'testResultsProcessor': 'jest-teamcity-reporter',
'coverageReporters': [
'teamcity',
],
'testPathIgnorePatterns': [
'<rootDir>/node_modules/',
'<rootDir>/e2e/',
],
'transformIgnorePatterns': [
'node_modules/(?!(jest-)?react-native|@react-native|@react-native/polyfills|react-native-device-log|@react-native-community/netinfo|@react-native-community|react-navigation|@gpsgate.*|react-syntax-highlighter/)',
],
};