Files
AndreaSlopFotografie/aidlc-docs/features/contact-page/construction/build-and-test/unit-test-instructions.md
T
SluijsensandClaude Opus 5.5 65c007f8c2
Continuous Integration / check (pull_request) Successful in 12m4s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 13m38s
Continuous Integration / deploy-production (pull_request) Skipped
Records Build and Test of the Contact page
Build, unit, integration and performance test instructions and the
summary, the corrected scroll rule and the review on test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:14:28 +01:00

12 lines
738 B
Markdown

# Unit Test Instructions — contact-page
```bash
cd web
pnpm test # vitest run --coverage (unit, component, property-based, axe)
```
- **Expected**: 71 test files, 367 tests, 0 failures; coverage thresholds met (100% for `src/lib/**`, `seo.ts`, `sitemap.ts`)
- **Property-based tests** print their seed (`fast-check seed: …`); rerun a failure with `FC_SEED=<seed> pnpm test`
- **New in this feature**: `lib/contactChannels`, `lib/withReplyTime`, `PrivacyNote`, `ContactPanel`, `ContactDetails`, `contact/ContactAside`, `webPage`/`contactPage` in `seo.test.ts`, the contact route in `app.test.tsx`
- **Note**: run without an output filter (e.g. `rtk proxy pnpm test` in agent shells), so a failing test is visible in full