SmartGare
Frontend

Frontend testing

Model, component, route, API-contract, and end-to-end verification.

Test layers

LayerPurpose
Model teststransformations, controlled vocabulary, derived view state
Component/workspace testsactor workflows, permissions, paging, validation
MSW integrationHTTP outcomes and retry behavior
Route testsURL state, access, and server/client boundaries
Playwrightproduction-build journeys in explicit mock mode
Bundle scansprove server-only code cannot reach the browser

Tests query roles and labels instead of implementation IDs. French UI strings come from the i18n catalog in assertions rather than copied literals.

Unmocked HTTP fails the test. Generated API declarations protect path, request, and response compatibility with the backend.

Commands

pnpm typecheck
pnpm test
pnpm lint
pnpm e2e
pnpm build

E2E does not require a running backend because it uses explicit mock-mode production builds. Backend integration remains a separate contract and deployment concern.

On this page