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>
12 lines
738 B
Markdown
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
|