Files
trackgo-fe/.cursor/commands/test-coverage.md
T
shancheas ff6814d038 feat: add new skills for coding standards, continuous learning, detail layout, form layout, project guidelines, security review, and verification loop
- Introduced coding standards for TypeScript and React in SKILL.md.
- Added continuous learning skill with configuration and evaluation scripts.
- Created detail layout guidelines for read-only pages.
- Established form layout rules for data-entry forms.
- Documented project guidelines for the frontend monorepo.
- Implemented security review checklist for frontend/Electron applications.
- Developed a verification loop skill for comprehensive session checks.

This commit enhances the skill set available for developers, ensuring adherence to best practices and improving code quality.
2026-08-25 16:58:10 +07:00

598 B

Test Coverage

Analyze Vitest coverage and add missing tests:

  1. Run pnpm test (packages that support coverage: pnpm --filter <pkg> test -- --coverage when configured)

  2. Identify files below 80%

  3. For each under-covered file:

    • Unit tests for validators, transformers, utils, stores
    • Testing Library tests for @repo/ui components
    • Journey tests for critical apps/web flows (mock data services)
  4. Verify new tests pass

  5. Show before/after coverage

Focus on:

  • Happy path
  • Error handling
  • Edge cases (null, undefined, empty)
  • Zod boundary conditions (rangeLength)