forked from PSVikki/metamask-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
22 lines (20 loc) · 977 Bytes
/
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
process.env.TZ = 'America/Toronto';
const config = {
preset: 'react-native',
setupFiles: ['<rootDir>/app/util/test/testSetup.js'],
transform: {
'^.+\\.js$': '<rootDir>jest.preprocessor.js',
},
transformIgnorePatterns: [
'node_modules/(?!(@react-native|react-native|rn-fetch|redux-persist-filesystem|@react-navigation|@react-native-community|@react-native-masked-view|react-navigation|react-navigation-redux-helpers|@sentry))',
],
snapshotSerializers: ['enzyme-to-json/serializer'],
// This is an environment variable that can be used to execute logic only in development
collectCoverage: process.env.NODE_ENV !== 'production',
coveragePathIgnorePatterns: ['/node_modules/', '__mocks__', '<rootDir>/e2e/'],
coverageReporters: ['text-summary', 'lcov'],
coverageDirectory: '<rootDir>/tests/coverage',
maxWorkers: process.env.NODE_ENV !== 'production' ? '25%' : '100%',
};
// eslint-disable-next-line import/no-commonjs
module.exports = config;