Skip to content

Add integration test for holder count display updating after React Qu…#509

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
Johnpii1:issue-480
Jun 28, 2026
Merged

Add integration test for holder count display updating after React Qu…#509
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
Johnpii1:issue-480

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

…ery cache invalidation

Summary

Description
Introduce a shared query key CREATOR_LIST_QUERY_KEY and move creator list fetching on the landing page to useQuery so query invalidation triggers refetches.
Surface live holder counts by adding holderCount?: number to the Course type and using featuredCreator.holderCount (with existing fallbacks) for the Audience chip.
Add an integration test that renders the landing page with a test QueryClient, mocks an initial holderCount, invalidates the creator query, mocks a refetch returning an updated holderCount, and asserts the UI shows the new count and the old count is gone.

Testing

Testing
Ran the focused integration test with pnpm exec vitest run src/pages/tests/LandingPage.keyboard.test.tsx and it passed.
Ran linting with pnpm exec eslint src/pages/LandingPage.tsx src/services/course.service.ts src/pages/tests/LandingPage.keyboard.test.tsx and it passed.
Ran type checks with pnpm exec tsc -b --pretty false and it passed.

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

close #480

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit 7a77518 into accesslayerorg:dev Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration test for holder count display updating after React Query cache invalidation

2 participants