test:test coverage for the components and services folder
Description:
Added and enhanced unit test cases to improve overall test coverage for both components and services modules.
- Improved coverage in
src/components/by:- Adding new test cases for HackdayProjectCard (previously 0% coverage)
- Increasing branch coverage for SummerCard
- Adding edge case and interaction tests for Navbar and Initiatives
- Improved coverage in
src/services/api.tsby:- Covering previously untested lines (error handling scenarios)
- Validating API success and failure responses
- Followed existing test patterns using Vitest + React Testing Library
- Covered:
- Rendering
- Props handling
- Conditional rendering
- User interactions
- Error handling
Type of Change:
- Bug Fix
-
Feature Development -
Documentation
-
Testing:
- Tested on desktop
-
Tested on mobile -
Tested in different browsers
-
Screenshots (if applicable):
Video Demo
Not applicable
Checklist:
- Code follows project style guidelines
-
Self-review completed -
No console errors -
TypeScript types are correct
-
Related to #41 (closed)

