mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 22:02:16 +00:00
The medication category enum lives in three places (Prisma schema, MEDICATION_CATEGORY_VALUES, MEDICATION_CATEGORY_KEYS). A new bucket added to the enum without a matching label key would silently fall back to categoryOther in <MedicationCard>. Pin the invariant with a vitest assertion that every non-OTHER value resolves to a distinct label key, plus a positive check that the fallback still fires for unknown categories.