Improve test coverage to above 90%
Summary
This MR focuses on improving the overall test coverage across the project to exceed the 90% threshold. Additional unit, integration, and component tests have been added to ensure better reliability, maintainability, and confidence in the application during future development and deployments.
The update also improves coverage for critical application flows, error handling, and edge-case scenarios.
Changes Made
- Added missing unit tests for core utilities and helper functions.
- Improved component test coverage for major UI flows.
- Added integration tests for API and state management logic.
- Covered loading, success, and error scenarios.
- Added edge-case validations and negative test cases.
- Refactored existing tests for better readability and stability.
Benefits
- Increases overall code reliability and stability.
- Reduces risk of regressions during future changes.
- Improves CI/CD confidence and maintainability.
- Ensures critical business logic is properly validated.
- Strengthens coverage for edge cases and failure handling.
Affected Areas
- API handling modules
- UI components
- State management logic
- Utility/helper functions
- Error handling flows
Testing Performed
- Verified all existing and newly added tests pass successfully.
- Confirmed overall coverage exceeds 90%.
- Validated critical application workflows through automated tests.
- Ensured no existing functionality was impacted.
closes #39 (closed)