Skip to content

test: improve test coverage

Satyapranavanadh Rayapureddy requested to merge test_files_ into dev

This PR increases the project's test coverage from 96.9% to 100% by addressing missing test files and uncovered logic branches in key components.

Key Changes:

  • New Page Tests: Added GenePanel500.test.tsx and GenePanel72.test.tsx to fully cover the previously untested oncology panel pages.
  • Component Hardening:
    • HeroCarousel: Refactored to accept a slides prop for better testability and added coverage for slides without highlights.
    • CardGrid: Added test cases for cards without titles to verify index-based key fallback.
    • Home: Updated the typography section logic and corresponding tests to cover all style variations (muted headings vs. standard text).
  • Verification: Confirmed 100% coverage across Statements, Branches, Functions, and Lines via Vitest/v8.

Merge request reports

Loading