mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
tests/kit/parity.ts pins what a route answers, stores and reports for a fixed walk of cases, so the code behind it can move under a byte-for-byte comparison: the response, the rows read back, the request's wide event and the queue and arrival tails it asked for, with generated ids, server timestamps and request ids replaced by stable placeholders. The first walk covers POST /api/measurements/batch: a mixed first sync with every per-entry refusal, the same sync again, a background day total, the manual and HealthKit mirror merge, a backfill, both whole-batch refusals and a narrow bridge token. The clock is pinned, so the snapshot holds on any day.