test(catalog): add read-only live audit consistency harness
Runs the full catalog audit (runCatalogAudit) against the live hotel DB with no repair/sql options — a pure read pass — and cross-checks the emitted summary against independent DB + asset-dir measurements: row totals, duplicate classname groups, orphaned catalog references and missing catalog / nitro / icon counts must match exactly, with zero error events and a final 'batch_complete'. Guarded by RUN_CATALOG_AUDIT_LIVE=1 so CI never runs it; loads the real .env because vitest fakes DATABASE_URL.
This commit is contained in:
1 parent
2650d325ec
commit
8c47c3c158
1 file changed
+221