mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The v1.4.37.1 read-path hotfix changed `ensureUserRollupsFresh` from an awaited populator to a fire-and-forget. On a cold testcontainer the integration test inserts measurements and immediately reads through `buildComprehensiveAggregate`, which now no longer waits for the rollup-write path to land — the coverage probe sees no buckets and the `dailyByType` branch returns an empty object. Calls `recomputeUserRollups(user.id)` explicitly in the test setup so the rollup-driven branch is exercised deterministically. Matches the production warm-cache contract (the test was always asserting the rollup-fed shape, just no longer racing against it).