forked from hyochan/talktalk-rn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
40 lines (40 loc) · 926 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
preset: 'react-native',
transformIgnorePatterns: [
'node_modules/(?!react-native|react-navigation|react-native-gesture-handler|react-native-animatable|react-native-vector-icons)/',
'<rootDir>/lib/'
],
coverageDirectory: './coverage/',
coveragePathIgnorePatterns: [
'/node_modules/',
'/test/',
'/src/contexts/'
],
collectCoverage: true,
setupFiles: [
'./test/jestSetup.js'
],
globals: {
'window': {}
},
transform: {
'^.+\\.js$': '<rootDir>/node_modules/react-native/jest/preprocessor.js'
},
// 'testRegex': '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: [
'js',
'jsx',
'json',
'ios.js',
'ios.jsx',
'android.js',
'android.jsx'
],
snapshotSerializers: [
'./node_modules/enzyme-to-json/serializer'
],
testPathIgnorePatterns: [
'\\.snap$',
'<rootDir>/node_modules/'
],
};