module.exports = { preset: 'jest-expo', 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)', ], setupFilesAfterEnv: ['/jest.setup.js'], collectCoverageFrom: [ 'app/**/*.{ts,tsx}', 'components/**/*.{ts,tsx}', 'services/**/*.{ts,tsx}', 'hooks/**/*.{ts,tsx}', 'utils/**/*.{ts,tsx}', '!**/*.d.ts', '!**/node_modules/**', '!**/__tests__/**', '!**/__mocks__/**', ], moduleNameMapper: { '^@/(.*)$': '/$1', '^expo/src/winter$': '/__mocks__/expoWinter.js', }, testMatch: [ '**/__tests__/**/*.(ts|tsx|js)', '**/*.(test|spec).(ts|tsx|js)', ], // proximity/ is a separate standalone app (its own package.json/node_modules/tsconfig); // it is type-checked and tested under its own config, not the canonical app's. testPathIgnorePatterns: ['/node_modules/', '/proximity/', '/dist/'], modulePathIgnorePatterns: ['/proximity/', '/dist/'], coverageThreshold: { global: { branches: 70, functions: 70, lines: 70, statements: 70, }, }, };