module.exports = { preset: 'jest-expo', testEnvironment: 'node', setupFilesAfterEnv: ['/jest.setup.js'], transformIgnorePatterns: [ 'node_modules/(?!(expo|expo-router|expo-font|expo-asset|expo-constants|expo-modules-core|expo-status-bar|expo-splash-screen|expo-file-system|@expo/.*|@expo-google-fonts/.*|@react-native|react-native|react-native-reanimated|react-native-worklets|@react-navigation|react-navigation|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|react-native-ble-plx|react-native-base64|@stripe/.*)/)', ], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], moduleNameMapper: { '^@/(.*)$': '/$1', }, collectCoverageFrom: [ 'components/**/*.{ts,tsx}', 'app/**/*.{ts,tsx}', 'services/**/*.{ts,tsx}', 'contexts/**/*.{ts,tsx}', '!**/*.d.ts', '!**/node_modules/**', ], globals: { 'ts-jest': { tsconfig: { jsx: 'react', }, }, }, };