mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
Introduce feature_interests schema + realtime publication and surface opt-in trends in the admin dashboard. Add Jest test infrastructure/coverage for the mobile app and update push-all to run mobile checks before pushing. Co-authored-by: Claude Code <claude@anthropic.com>
21 lines
803 B
JavaScript
21 lines
803 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'jest-expo',
|
|
clearMocks: true,
|
|
setupFiles: ['<rootDir>/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/.*)',
|
|
],
|
|
};
|