feat: explore tab, React Query data layer, programs, sync, analytics, testing infrastructure
- Replace browse tab with Supabase-connected explore tab with filters - Add React Query for data fetching with loading states - Add 3 structured programs with weekly progression - Add Supabase anonymous auth sync service - Add PostHog analytics with screen tracking and events - Add comprehensive test strategy (Vitest + Maestro E2E) - Add RevenueCat subscription system with DEV simulation - Add i18n translations for new screens (EN/FR/DE/ES) - Add data deletion modal, sync consent modal - Add assessment screen and program routes - Add GitHub Actions CI workflow - Update activity store with sync integration
This commit is contained in:
33
vitest.config.render.ts
Normal file
33
vitest.config.render.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/__tests__/setup-render.tsx'],
|
||||
include: ['src/__tests__/components/rendering/**/*.test.tsx', 'src/__tests__/integration/*.render.test.tsx'],
|
||||
testTimeout: 15000,
|
||||
hookTimeout: 15000,
|
||||
pool: 'forks',
|
||||
execArgv: ['--require', resolve(__dirname, 'src/__tests__/mocks/preload-rn-mock.cjs')],
|
||||
server: {
|
||||
deps: {
|
||||
inline: [
|
||||
'@testing-library/react-native',
|
||||
'react-native-reanimated',
|
||||
'react-native-gesture-handler',
|
||||
'react-native-screens',
|
||||
'react-native-safe-area-context',
|
||||
'react-native-svg',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, '.'),
|
||||
'react-native': resolve(__dirname, 'src/__tests__/mocks/react-native.ts'),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user