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:
52
vitest.config.ts
Normal file
52
vitest.config.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/__tests__/setup.ts'],
|
||||
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
||||
exclude: [
|
||||
'src/__tests__/components/rendering/**',
|
||||
'src/__tests__/integration/*.render.test.tsx',
|
||||
'node_modules',
|
||||
],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'json-summary', 'html', 'lcov'],
|
||||
include: ['src/**/*.{ts,tsx}'],
|
||||
exclude: [
|
||||
'src/**/__tests__/**',
|
||||
'src/**/*.d.ts',
|
||||
'src/**/*.test.{ts,tsx}',
|
||||
'src/**/*.spec.{ts,tsx}',
|
||||
'src/**/index.ts',
|
||||
'src/**/types.ts',
|
||||
'src/**/CLAUDE.md',
|
||||
'src/shared/data/dataService.ts',
|
||||
'src/shared/data/useTranslatedData.ts',
|
||||
'src/shared/services/sync.ts',
|
||||
'src/shared/services/analytics.ts',
|
||||
],
|
||||
thresholds: {
|
||||
'src/shared/stores/**': { lines: 85, branches: 65, functions: 90, statements: 85 },
|
||||
'src/shared/services/purchases.ts': { lines: 100 },
|
||||
'src/shared/services/sync.ts': { lines: 80 },
|
||||
'src/shared/services/analytics.ts': { lines: 80 },
|
||||
'src/shared/data/achievements.ts': { lines: 100 },
|
||||
'src/shared/data/collections.ts': { lines: 100 },
|
||||
'src/shared/data/programs.ts': { lines: 90 },
|
||||
'src/shared/data/trainers.ts': { lines: 100 },
|
||||
'src/shared/data/workouts.ts': { lines: 100 },
|
||||
},
|
||||
},
|
||||
testTimeout: 10000,
|
||||
hookTimeout: 10000,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, '.'),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user