Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 767 Bytes

File metadata and controls

25 lines (16 loc) · 767 Bytes

Tests & Coverage

This package uses Vitest for unit tests, running under Vite.

Commands

  • Run all workspace tests: pnpm -r test
  • Run only app tests: pnpm --filter template-retail-rsc-app test
  • Open Vitest UI: pnpm --filter template-retail-rsc-app test:ui
  • Coverage report: pnpm --filter template-retail-rsc-app coverage

Test layout

  • Test files live alongside source in src/** and end with .test.ts or .test.tsx.
  • Path alias @/ resolves to src/ (Vite + TS config).

Environment

  • Default environment: jsdom (configured in vite.config.ts).

Coverage

  • Uses @vitest/coverage-v8.
  • Run: pnpm --filter template-retail-rsc-app coverage
  • Outputs coverage summary to the console and a report in coverage/.