Files
AndreaSlopFotografie/aidlc-docs/features/soorten-fotoshoots-page/construction/build-and-test/unit-test-instructions.md
T
SluijsensandClaude Opus 5.5 a4149e86af
Continuous Integration / check (pull_request) Successful in 10m46s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 12m15s
Continuous Integration / deploy-production (pull_request) Skipped
Records Build and Test of the Soorten fotoshoots page and completes the feature
Full pnpm check at d12665c passed (325 tests, Lighthouse within budget)
and 19 browser checks against the production build passed. Adds the
build and test instructions and summary, marks the feature complete
and logs the session in the audit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:30:33 +01:00

1.6 KiB

Unit Test Execution — soorten-fotoshoots-page

cd web
pnpm test             # vitest run --coverage
  • Expected: 65 files, 325 tests, 0 failures (at d12665c; 60 files / 273 tests on master before this feature, plus 6 from contact-page's cherry-picked webPage() tests)
  • Coverage: thresholds met; src/lib/ and src/seo.ts at 100%; overall 92.4% of statements
  • Includes, new in this feature:
    • shootTypes content: ids and order, existing package ids, frame colours that exist in the theme, alt texts, 4:5 photos
    • FramedImage (frameColor) and MediaText (reverse, mediaSize, detailImage), with the existing callers unchanged; the generated CSS rules are read with src/test/cssRules.ts, since jsdom applies neither media queries nor pseudo-elements
    • CallToAction, RichParagraph (moved), Pricing anchor #prijzen
    • ShootBlock and ShootList: articles with anchors, link targets and names, alternation, bands, priority photo, axe
    • the /soorten-fotoshoots route through the real route tree: outline, articles, contact links incl. ?pakket=, portfolio links only when /portfolio is indexed, head tags, WebPage JSON-LD
    • property-based tests (fast-check): shootContactLink (only a visible package's id goes into ?pakket=, always the contact section), shootPortfolioLink, areaServed (named areas in order, only towns and regions), shootServices (one service per shoot in order, distinct anchor @ids, provider and area, first paragraph, no e-mail or prices), absoluteUrl (invariant and idempotency)
  • Report: terminal output plus web/coverage/