-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
39 lines (39 loc) · 1.25 KB
/
jest.config.js
File metadata and controls
39 lines (39 loc) · 1.25 KB
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
module.exports = {
preset: "react-native",
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
transformIgnorePatterns: [
"node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|@react-navigation|@supabase|lucide-react-native|react-native-reanimated|react-native-gesture-handler|react-native-screens|react-native-safe-area-context|react-native-svg|react-native-view-shot|@shopify/react-native-skia|react-native-url-polyfill|expo-modules-core|expo-haptics|expo-audio|expo-file-system)/)",
],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
testMatch: [
"**/__tests__/**/*.test.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)",
],
collectCoverageFrom: [
"app/**/*.{ts,tsx}",
"components/**/*.{ts,tsx}",
"hooks/**/*.{ts,tsx}",
"features/**/*.{ts,tsx}",
"shared/**/*.{ts,tsx}",
"services/**/*.{ts,tsx}",
"store/**/*.{ts,tsx}",
"utils/**/*.{ts,tsx}",
"!**/*.d.ts",
"!**/node_modules/**",
"!**/__tests__/**",
"!**/coverage/**",
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
coverageReporters: ["text", "lcov", "html"],
testEnvironment: "node",
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/$1",
},
};