mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Two scenarios pinned end-to-end against the postgres testcontainer: saving a valid reordered chain persists the JSON column with priority normalised to 1-indexed insertion order, and saving an empty chain rejects with 422 + leaves the column untouched. No fetch mocks; the route runs against the real Prisma client so a future schema drift on User.aiProviderChain trips the suite immediately. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>