forked from Bitcoin-Jungle/bitcoin-jungle-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
43 lines (43 loc) · 1.21 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
module.exports = {
preset: "react-native",
setupFilesAfterEnv: [],
transform: {
"\\.(ts|tsx)$": "ts-jest",
},
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-firebase/auth" +
"|@react-native-firebase" +
"|@react-navigation" +
")/)",
],
}