Add unit tests for frontend API client (0% coverage) #9

Open
opened 2026-02-17 16:38:56 +00:00 by santhoshj · 0 comments
Owner

Summary

The frontend API client (src/lib/api.ts) has 0% code coverage. Tests need to be written for:

  • GET request handling
  • POST request handling
  • PUT request handling
  • DELETE request handling
  • Error handling
  • Token management

Acceptance Criteria

  • All HTTP methods tested
  • Error cases covered
  • Token management tested
  • Coverage target: >90%
  • Quality gate requirement: >70% overall coverage
## Summary The frontend API client (`src/lib/api.ts`) has 0% code coverage. Tests need to be written for: - GET request handling - POST request handling - PUT request handling - DELETE request handling - Error handling - Token management ## Acceptance Criteria - [ ] All HTTP methods tested - [ ] Error cases covered - [ ] Token management tested - [ ] Coverage target: >90% ## Related - Quality gate requirement: >70% overall coverage
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/headroom#9