mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
v1.4.36's perf wave added a `SELECT COUNT(*) FROM measurement_rollups` probe at the head of `computeSummariesSlice`. The slim-slice route test mocks `$queryRaw` with two `mockResolvedValueOnce` calls (aggregate + latest); the new probe consumed the first slot, leaving the aggregate read pointing at undefined and the route returning 500. Seed `n: BigInt(0)` as the first mock value so the route deterministically takes the legacy heavy-aggregate fallback path the rest of the test expects.