forked from GaloyMoney/blink-mobile
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjest.config.js
48 lines (48 loc) · 1.45 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
preset: "react-native",
setupFilesAfterEnv: ["<rootDir>/__tests__/helpers/jest.setup.js"],
transform: {
"\\.(ts|tsx)$": "ts-jest",
"^.+\\.svg$": "jest-transform-stub",
},
globals: {
"ts-jest": {
tsconfig: "tsconfig.jest.json",
},
},
testRegex: "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
rootDir: ".",
moduleNameMapper: {
"^@app/(.*)$": ["<rootDir>app/$1"],
"^@mocks/(.*)$": ["<rootDir>__mocks__/$1"],
},
transformIgnorePatterns: [
"node_modules/(?!(react-native" +
"|@react-native" +
"|react-navigation-tabs" +
"|react-native-animatable" +
"|react-native-camera" +
"|react-native-elements" +
"|react-native-extended-stylesheet" +
"|react-native-haptic-feedback" +
"|react-native-image-picker" +
"|react-native-modal" +
"|react-native-splash-screen" +
"|react-native-screens" +
"|react-native-size-matters" +
"|react-native-ratings" +
"|react-native-reanimated" +
"|react-native-root-siblings" +
"|react-native-root-toast" +
"|react-native-vector-icons" +
"|react-native-phone-number-input" +
"|react-native-country-picker-modal" +
"|@react-native-firebase/auth" +
"|@react-native-firebase" +
"|@react-navigation" +
"|@react-native-community" +
"|react-native-error-boundary" +
")/)",
],
}