Happy DOM is a fast JavaScript implementation of the browser DOM for server-side environments. We pair it with Bun's test runner so component and markdown-parsing tests exercise real DOM behavior — querying, serialization, sanitization — at unit-test speed, reserving full-browser Playwright runs for the flows that genuinely need one.
How We Use It
- DOM-dependent unit tests in Bun without launching a browser
- Markdown parser characterization tests over real DOM serialization
- Fast CI feedback for component and sanitization logic
Monitoring & Testing
Why this matters: Observability and tests catch regressions early, reduce MTTR, and enable confident, frequent releases. We ship with confidence by instrumenting apps end-to-end: unit and integration tests, accessibility checks, and production observability. Our approach emphasizes fast feedback loops, clear failure signals, and actionable telemetry. Preferred defaults: Sentry for errors/perf, Playwright for E2E, Vitest or Bun Test for unit, OpenTelemetry for tracing, Lighthouse CI for budgets.