The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(roadtrip): read the last mock call without Array#at
Mauricef1eadd670d0e
diff --git a/client/src/components/Roadtrip/useRoadtripCorridor.test.ts b/client/src/components/Roadtrip/useRoadtripCorridor.test.tsindex 93e861cb7..2cc90c11e 100644--- a/client/src/components/Roadtrip/useRoadtripCorridor.test.ts+++ b/client/src/components/Roadtrip/useRoadtripCorridor.test.ts@@ -48,7 +48,8 @@ const routes = (days: RoadtripDay[]): RoadtripRoutes => ({/** What the corridor hook was handed on the last render. */const lastCall = (): { line: LatLng[]; categories: string[]; widthKm: number } => {- const call = useCorridorPois.mock.calls.at(-1)!+ const calls = useCorridorPois.mock.calls+ const call = calls[calls.length - 1]return { line: call[0], categories: call[1], widthKm: call[2] }}