🧩 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
🧩 Background
The component/utility at
components/dashboard/PRInsights/RepoPerformanceTable.tsxneeds 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.tsxtargeting 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
✅ Definition of done
vitest runpasses.