Three fixes:
1. React/ReactDOM version mismatch (root cause of 11 test failures):
@testing-library/react (hoisted to root) resolved react-dom@18.3.1 from
root node_modules, but homepage components use React 19. React 19 JSX
elements cannot be rendered by react-dom 18, producing 'Objects are not
valid as a React child' errors.
Fix: added react-dom@^19.2.0 to root package.json, making root-level
react-dom v19.2.7. @testing-library/react now resolves react-dom@19,
matching the homepage's React 19 components.
2. TypeScript target (warning elimination):
Changed homepage tsconfig target from ES2024 to ES2022. The installed
Vite/esbuild version does not recognize ES2024.
3. Pricing currency test (test/configuration mismatch):
The production pricing-config.ts uses currency 'MAD' (Moroccan dirham).
Updated the test expectation from 'USD' to 'MAD' to match.
Validation:
- Focused tests: 6/6 files, 14/14 tests pass
- Full homepage: 16/16 files, 51/51 tests pass
- Full API: 150/150 files, 716/716 tests pass (no regressions)