Files
nuzlocke-tracker/.beans/nuzlocke-tracker-1guz--component-tests-for-key-frontend-components.md
Julian Tabel 9aaa95a1c7 Add component tests for EndRunModal, GameGrid, RulesConfiguration, Layout
33 tests covering rendering, user interactions (userEvent clicks), prop
callbacks, filter state, and conditional description text. Adds a
matchMedia stub to the vitest setup file so components importing
useTheme don't throw in jsdom. Also adds actionlint and zizmor
pre-commit hooks for GitHub Actions linting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:57:12 +01:00

904 B

title, status, type, priority, created_at, updated_at, parent
title status type priority created_at updated_at parent
Component tests for key frontend components completed task normal 2026-02-10T09:33:45Z 2026-02-21T12:53:51Z nuzlocke-tracker-yzpb

Write component tests for key frontend React components, focusing on user interactions and rendering correctness.

Test components with no external hook dependencies directly; mock useTheme where needed. Use @testing-library/user-event for interactions.

Checklist

  • Test EndRunModal — Victory/Defeat/Cancel button callbacks, genlocke description text, disabled state
  • Test GameGrid — renders games, generation filter, region filter, onSelect callback
  • Test RulesConfiguration — renders rule sections, toggle calls onChange, type restriction toggle, reset button
  • Test Layout — nav links present, mobile menu toggle, theme toggle button