test(catalog): add read-only live audit consistency harness
CI / check (push) Successful in 1m12s
CI / deploy (push) Successful in 1m26s

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:
openhands committed 2026-09-07 17:13:44 +02:00
1 parent 2650d325ec
commit 8c47c3c158
1 file changed
+221
File diff suppressed because it is too large. Load diff