From 32a177f5aa0e465569c417114ab61bbf484b4cb7 Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 24 Jul 2026 11:53:05 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20autocomplete.js=20exempted=20from=20impo?= =?UTF-8?q?rt=20check=20=E2=80=94=20standalone=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - autocomplete.js uses globals (var) with no ES module imports - Added to test exemption list alongside state.js --- tests/frontend/unit.test.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/frontend/unit.test.mjs b/tests/frontend/unit.test.mjs index 39be6ce..cff5e50 100644 --- a/tests/frontend/unit.test.mjs +++ b/tests/frontend/unit.test.mjs @@ -103,6 +103,7 @@ 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' }, ]; const expectNoImport = new Set(expected.map(e => e.file));