-
Notifications
You must be signed in to change notification settings - Fork 16
/
jest.config.js
39 lines (38 loc) · 1.07 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
const modulesToTransform = [
"react-native",
"@react-native(-community)?",
"react-native-splash-screen",
"ky",
"react-native-fs",
"react-native-reanimated",
"@react-navigation",
"react-navigation",
"react-native-gesture-handler",
"react-native-iphone-x-helper",
"react-navigation-stack",
"react-native-vector-icons",
"@react-native-mapbox-gl",
"expo-document-picker",
"@unimodules",
"@react-native-picker/picker",
"p-defer",
];
module.exports = {
preset: "react-native",
setupFilesAfterEnv: [
"@testing-library/jest-native/extend-expect",
"@react-native-mapbox-gl/maps/setup-jest",
],
testPathIgnorePatterns: ["/node_modules/", "/e2e/", "/src/backend/"],
modulePathIgnorePatterns: [
"/nodejs-assets/",
// Because we compile the backend and include in the app, package.json and
// others will be in the android and ios folders and cause Jest to complain
"/android/",
"/ios/",
],
transformIgnorePatterns: [
`/node_modules/(?!(${modulesToTransform.join("|")})/)`,
],
setupFiles: ["<rootDir>/jest/setup.js"],
};