Files
Sauci/apps/mobile/jest.config.js
T
jjbruntonandClaude Opus 4.5 58209b94ef Fix EAS local builds and resolve require cycles
- Add dotenv-cli for EAS local builds to load env vars
- Break circular dependencies in store/hooks imports
- Add env var validation with clear error messages
- Remove hardcoded Sentry auth token from sentry.properties
- Add .ipa files to .gitignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 16:43:24 +00:00

24 lines
856 B
JavaScript

/** @type {import('jest').Config} */
module.exports = {
preset: 'jest-expo',
clearMocks: true,
setupFiles: [
'<rootDir>/src/test/setupEnv.js',
'../../node_modules/react-native-gesture-handler/jestSetup.js',
],
setupFilesAfterEnv: [
'@testing-library/jest-native/extend-expect',
'<rootDir>/src/test/setup.ts',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testMatch: [
'<rootDir>/src/**/__tests__/**/*.(spec|test).(ts|tsx)',
'<rootDir>/src/**/*.(spec|test).(ts|tsx)',
],
transformIgnorePatterns: [
'node_modules/(?!(jest-)?react-native|@react-native|@react-navigation|expo(nent)?|@expo(nent)?/.*|expo-router|react-native-reanimated|react-native-gesture-handler|react-native-safe-area-context|@sentry/react-native|@sentry/.*)',
],
};