-
Notifications
You must be signed in to change notification settings - Fork 138
/
jest.config.js
57 lines (57 loc) · 1.8 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
49
50
51
52
53
54
55
56
57
module.exports = {
preset: "react-native",
setupFiles: ["./node_modules/react-native-gesture-handler/jestSetup.js"],
setupFilesAfterEnv: ["@testing-library/jest-native/extend-expect"],
transform: {
"\\.(ts|tsx)$": [
"ts-jest",
{
compiler: "ttsc",
tsconfig: "tsconfig.jest.json",
},
],
"^.+\\.svg$": "jest-transform-stub",
},
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-community" +
"|@react-native-firebase" +
"|@react-native-firebase/auth" +
"|@react-native" +
"|@react-navigation" +
"|react-native-animatable" +
"|react-native-country-picker-modal" +
"|react-native-error-boundary" +
"|react-native-extended-stylesheet" +
"|react-native-haptic-feedback" +
"|react-native-keyboard-aware-scroll-view" +
"|react-native-modal" +
"|react-native-phone-number-input" +
"|react-native-ratings" +
"|react-native-reanimated" +
"|react-native-linear-gradient" +
"|react-native-root-siblings" +
"|react-native-screens" +
"|react-native-size-matters" +
"|react-native-splash-screen" +
"|react-native-toast-message" +
"|react-native-vector-icons" +
"|react-navigation-tabs" +
"|@rneui" +
"|rn-qr-generator" +
"|react-native-image-crop-picker" +
"|react-native-currency-picker" +
"|react-native-status-bar-height" +
"|react-native-auto-height-image" +
"|react-native-nfc-manager" +
"|uuid" +
")/)",
],
}