Skip to content

Fix ApiDetailPage tests and imports#323

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
nonchalanttee22-lgtm:feature/related-apis
Jun 29, 2026
Merged

Fix ApiDetailPage tests and imports#323
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
nonchalanttee22-lgtm:feature/related-apis

Conversation

@nonchalanttee22-lgtm

Copy link
Copy Markdown
Contributor
  • Add missing usePersistedState import to CodeExample component
  • Add reviews field to APIItem type in mockApis
  • Add matchMedia mock to setupTests.ts for Tabs compatibility
  • Add vite test configuration with setupFiles
  • Add missing imports (EndpointGroupHover, RatingHistogram) and types (ReviewSort, EndpointGroupPreview) to ApiDetailPage
  • Remove test for non-existent 'related APIs' feature
  • Fix tab role queries in tests (button -> tab)
  • Add matchMedia mock to Tabs.test.tsx for jsdom environment
  • Closes Add ApiDetailPage Sidebar 'Related APIs' #249

- Add missing usePersistedState import to CodeExample component
- Add reviews field to APIItem type in mockApis
- Add matchMedia mock to setupTests.ts for Tabs compatibility
- Add vite test configuration with setupFiles
- Add missing imports (EndpointGroupHover, RatingHistogram) and types (ReviewSort, EndpointGroupPreview) to ApiDetailPage
- Remove test for non-existent 'related APIs' feature
- Fix tab role queries in tests (button -> tab)
- Add matchMedia mock to Tabs.test.tsx for jsdom environment
@greatest0fallt1me greatest0fallt1me merged commit 6ae188c into CalloraOrg:main Jun 29, 2026
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 ApiDetailPage Sidebar 'Related APIs'

2 participants