ReferenceTooling
Edit this page

Tooling

Testing Bun SSR Apps with react-bun-ssr

Test react-bun-ssr projects across unit, integration, and end-to-end layers while preserving SSR behavior and route coverage.

testsunitintegratione2e

The framework repo itself uses a layered test model, and application code should follow the same pattern.

  • unit tests for pure utilities and route-model logic
  • integration tests for request/response behavior
  • e2e tests for navigation, hydration, and document semantics

Useful commands

bun run test
bun run test:unit
bun run test:integration
bun run test:e2e

What to cover in a Task Tracker app

  • loader serialization and deferred data
  • action redirects and validation payloads
  • route-error handling and not-found behavior
  • soft transitions between shared layouts
  • metadata updates across client navigation

Next step

Inspect production output in Build Output.