- 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
34 lines
955 B
TypeScript
34 lines
955 B
TypeScript
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'),
|
|
},
|
|
},
|
|
})
|