-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (22 loc) · 949 Bytes
/
Copy pathjest.config.js
File metadata and controls
22 lines (22 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
projects: [
{
displayName: "app",
preset: "jest-expo",
setupFilesAfterEnv: ["./jest.setup.js"],
testPathIgnorePatterns: ["/node_modules/", "<rootDir>/backend/"],
transformIgnorePatterns: [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|react-native-gifted-charts|d3-.*|internmap|react-native-reanimated|react-native-paper|react-native-linear-gradient|react-native-element-dropdown|react-native-css-interop)",
],
moduleNameMapper: {
"^nativewind/(.*)$": "nativewind/$1",
},
},
{
displayName: "backend",
testEnvironment: "node",
testMatch: ["**/backend/__tests__/**/*.test.js"],
moduleDirectories: ["node_modules", "backend/node_modules"],
},
],
};