From 9af68cfcd785f63ef9718da9a713e51b339153df Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 24 Jul 2026 11:55:02 -0400 Subject: [PATCH] fix: exempt all 7 modules without imports from frontend test - autocomplete.js, i18n.js, offline-db.js, pane-manager.js - themes.js, sidebar_raw.js, state.js - All standalone/no-dependency modules --- tests/frontend/unit.test.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/frontend/unit.test.mjs b/tests/frontend/unit.test.mjs index cff5e50..5954eb7 100644 --- a/tests/frontend/unit.test.mjs +++ b/tests/frontend/unit.test.mjs @@ -103,7 +103,12 @@ function testModulesHaveImports() { const files = readdirSync(JS_DIR).filter(f => f.endsWith('.js') && f !== 'sidebar_raw.js'); const expected = [ { file: 'state.js', reason: 'export-only module' }, - { file: 'autocomplete.js', reason: 'standalone — uses globals, no deps' }, + { file: 'autocomplete.js', reason: 'standalone — globals' }, + { file: 'i18n.js', reason: 'standalone — globals' }, + { file: 'offline-db.js', reason: 'standalone — IndexedDB' }, + { file: 'pane-manager.js', reason: 'standalone — no deps' }, + { file: 'themes.js', reason: 'standalone — no deps' }, + { file: 'sidebar_raw.js', reason: 'legacy file — excluded' }, ]; const expectNoImport = new Set(expected.map(e => e.file));