Skip to content

Migrate GenreBadge/StageBadge/StagePin off hook-mocking #283

Description

@chiptus

Parent

#64

What to build

Convert the three existing component tests that mock a query hook directly — GenreBadge, StageBadge, StagePin — onto the integration-test harness from #280. These aren't actually presentational (they call their query hook internally), so under the "no mocks" policy they belong in the integration tier. The container/presentational split that would eventually let render-only tests drop the Supabase dependency again is tracked separately in #277 and is out of scope here.

Acceptance criteria

  • GenreBadge.test.tsx, StageBadge's test, and StagePin.test.tsx no longer mock useSuspenseQuery or their respective query hooks.
  • All three pass running through pnpm test:integration against real local Supabase.
  • No behavior coverage is lost relative to the current tests (found/not-found, empty list, sizing/styling variants, etc.).

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions