Skip to content

Improve test coverage for page components

Kaveri Mamidi requested to merge data-mapping into AI-HackDays

Description

Enhanced unit test coverage for page-level components under src/pages/ to ensure reliability and maintainability.

Changes Made

  • Added new test files in src/__tests__/pages/
  • Covered key scenarios including:
    • Component rendering
    • API data handling (mocked)
    • Loading and empty states
    • Navigation and routing behavior
  • Refactored test file placement by removing incorrectly placed tests from src/pages/
  • Ensured consistency by following existing patterns from:
    • AIHackdays.test.tsx
    • Home.test.tsx

Impact

  • Improves overall test coverage and code quality
  • Helps detect regressions in page-level components
  • Aligns testing structure with project standards

Type of Change

  • Bug Fix
  • Feature Development
  • Documentation

Testing

  • Tested on desktop
  • Tested on mobile
  • Tested in different browsers

Screenshots (if applicable)

Screenshot_from_2026-03-27_12-33-09


Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • TypeScript types are correct

Related to: #44 (closed)

Merge request reports

Loading