test(coverage): achieve 100% test coverage - phase 1 critical files
Description
Increase test coverage from 94.76% to 100% by adding tests for uncovered code paths and edge cases.
Current overall coverage is 94.76%, leaving approximately 5.24% of the codebase untested. This phase focuses on improving coverage for the files with the lowest percentages.
Target Files
-
error.tsx— 73.68% -
vendor.tsx— 76.92% -
dForm.tsx— 76.97% -
KYPQueuePage.tsx— 76.97% -
aPrescriptionPage.tsx— 87.97%
Scope
- Add unit/integration tests for uncovered lines
- Cover conditional branches, fallback states, and edge cases
- Improve statement, branch, function, and line coverage
- No production/business logic changes included
Expected Outcome
- All listed files reach 100% coverage
- Overall project coverage increases from 94.76% → 100%
- Estimated addition of 25–30 test cases
Validation Commands
bun run test:coverage
bun run test
bun run lint