Loading
Convert top-annual-contributors-page/LegacyCategoryLegend to TypeScript
What does this MR do and why?
Convert top-annual-contributors-page/LegacyCategoryLegend.vue to TypeScript and add a spec.
Part of &33. Closes #857 (closed)
What changed
- Switched
LegacyCategoryLegend.vueto<script setup lang="ts">. - Added unit tests in
LegacyCategoryLegend.spec.tscovering rendering of categories, descriptions, and badge variants.
Behaviour changes
None. The component is purely presentational with no props, and rendering remains identical.
Verification
Passed from contributors/:
npm run typecheck && npm run lint && TZ=UTC npm run test -- app/javascript/pages/top-annual-contributors-page/LegacyCategoryLegend.spec.ts --run