Skip to content

test(RepoPerformanceTable-timezone-boundaries): verify Timezone Normalization & Calendar Data Boundary Alignment (Variation 8) #7078

Description

@souravjhahind

🧩 Background

The component/utility at components/dashboard/PRInsights/RepoPerformanceTable.tsx needs isolated unit and integration testing. This issue focuses specifically on Timezone Normalization & Calendar Data Boundary Alignment. Time offsets can shift activity blocks between dates, creating streaks divergence across viewers in different regions.

🎯 Objective

Create the new test file components/dashboard/PRInsights/RepoPerformanceTable.timezone-boundaries.test.tsx targeting Timezone Normalization & Calendar Data Boundary Alignment and achieve complete coverage on the specified conditions.

📁 Files to touch

  • components/dashboard/PRInsights/RepoPerformanceTable.timezone-boundaries.test.tsx (new)

🛠️ Implementation steps

  • Mock standard timezone settings (e.g., UTC, EST, IST, and JST).
  • Assert calculations align commits onto the correct visual dates.
  • Verify leap year boundaries parse without leaving gaps in grids.
  • Assert calendar date format utility outputs match expectations in each locale.
  • Test offsets around transition dates like daylight savings.

✅ Definition of done

  • 5 test cases.
  • vitest run passes.

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions