- brouter-mock.ts: Canned route responses for 2 and 3 waypoint sessions, plus latLngToPixel helper for pixel-precise map interactions - planner.test.ts: Route split, map zoom, and overnight tests now use mockBRouter() for instant deterministic responses instead of real BRouter — fixes all 3 flaky tests - Used .first() for sidebar km locator to avoid strict mode violations when both header summary and stats footer match All 38 E2E tests pass in 9.7s (was 34s+ with real BRouter). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| auth.test.ts | ||
| integration.test.ts | ||
| journal.test.ts | ||
| planner.test.ts | ||
| settings.test.ts | ||