From e1fd1f24893a104f9e586ca88b4468689be16df9 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Tue, 2 Jun 2026 21:06:02 -0700 Subject: [PATCH] test: register enrichment-manager.js in script-split-integrity scan The onclick-coverage guard only scans the split modules + a hardcoded extras list, so it flagged openEnrichmentManager() (defined in the new, loaded enrichment-manager.js) as undefined. Add enrichment-manager.js to the scanned non-split files. The function genuinely exists and is loaded via its script tag. --- tests/test_script_split_integrity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_script_split_integrity.py b/tests/test_script_split_integrity.py index 1f11f05a..c1a628e1 100644 --- a/tests/test_script_split_integrity.py +++ b/tests/test_script_split_integrity.py @@ -51,7 +51,8 @@ SPLIT_MODULES = [ ] # Other JS files that exist in static/ but are NOT part of the split -NON_SPLIT_JS = {"setup-wizard.js", "docs.js", "helper.js", "particles.js", "worker-orbs.js"} +NON_SPLIT_JS = {"setup-wizard.js", "docs.js", "helper.js", "particles.js", "worker-orbs.js", + "enrichment-manager.js"} # Pre-existing duplicate helper functions that lived in the original monolith. # In a plain