This package uses Vitest for unit tests, running under Vite.
- 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 files live alongside source in
src/**and end with.test.tsor.test.tsx. - Path alias
@/resolves tosrc/(Vite + TS config).
- Default environment: jsdom (configured in
vite.config.ts).
- Uses
@vitest/coverage-v8. - Run:
pnpm --filter template-retail-rsc-app coverage - Outputs coverage summary to the console and a report in
coverage/.