-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 981 Bytes
/
jest.config.js
File metadata and controls
28 lines (27 loc) · 981 Bytes
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
/** @type {import('jest').Config} */
const config = {
verbose: true,
preset: "jest-expo",
// https://github.com/zoontek/react-native-permissions/issues/759#issuecomment-1496641261
moduleNameMapper: {
'react-native-permissions': '<rootDir>/node_modules/react-native-permissions/mock',
},
transformIgnorePatterns: [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)"
],
collectCoverageFrom: [
"**/*.{ts,tsx,js,jsx}",
"!**/coverage/**",
"!**/node_modules/**",
"!**/babel.config.js",
"!**/metro.config.js",
"!**/jest.config.js",
"!**/env.d.ts",
"!**/contexts/*",
"!**/nativewind-env.d.ts",
"!**/tailwind.config.js",
"!**/expo-env.d.ts",
"!**/.expo/**"
]
};
export default config;