mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
Tests cast object literals to User, Collection and AuditEventSchema, which left every other field undefined; they now use userFixture, collectionFixture and makeAuditEvent. A modelCastRule bans casting an object literal to those types, or to Save/State, in tests and v2 stories. Reading a value back as one of them stays allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GCi2WPmUMtYNKvP1GbzgrS