Skip to content

feat: add frontend test suite with Vitest#96

Merged
z4ab merged 1 commit into
mainfrom
feat/issue-89-frontend-tests
Jun 17, 2026
Merged

feat: add frontend test suite with Vitest#96
z4ab merged 1 commit into
mainfrom
feat/issue-89-frontend-tests

Conversation

@z4ab

@z4ab z4ab commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Adds comprehensive tests for all mapper functions (toVehiclePosition, toCacheStatus, toRoute, toStop, toAlert, toDeparture) and the formatAge utility. Exports mapper functions from hook files for testability. Fixes pre-existing test failures in NearbyStopsPanel test by wrapping with QueryClientProvider.

Closes #89

Export mapper functions from hooks and App.tsx for testability.
Fix NearbyStopsPanel test to wrap with QueryClientProvider.
Add comprehensive mapper tests covering all API type transformations.

Closes #89
@railway-app
railway-app Bot temporarily deployed to grt-bus-tracker / bus-tracker-pr-96 June 16, 2026 23:26 Destroyed
@railway-app

railway-app Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

🚅 Deployed to the bus-tracker-pr-96 environment in grt-bus-tracker

Service Status Web Updated (UTC)
bus-tracker-frontend ✅ Success (View Logs) Web Jun 16, 2026 at 11:27 pm
bus-tracker-api ✅ Success (View Logs) Web Jun 16, 2026 at 11:27 pm

@z4ab
z4ab merged commit 26e1878 into main Jun 17, 2026
4 checks passed
@z4ab
z4ab deleted the feat/issue-89-frontend-tests branch June 25, 2026 18:36
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 frontend test suite with Vitest

1 participant