From 3cf5f0b31ca69195da487365ff1e1fabfc92978f Mon Sep 17 00:00:00 2001 From: Dicky Moore Date: Mon, 18 May 2026 09:27:03 +0100 Subject: [PATCH] test: drop stale baut regression case --- test/test-installation-components.js | 33 ---------------------------- 1 file changed, 33 deletions(-) diff --git a/test/test-installation-components.js b/test/test-installation-components.js index e2a4e8a69..808ee6faa 100644 --- a/test/test-installation-components.js +++ b/test/test-installation-components.js @@ -164,39 +164,6 @@ async function runTests() { console.log(''); - // ============================================================ - // Test 4b: Preserve installed modules with no source - // ============================================================ - console.log(`${colors.yellow}Test Suite 4b: Preserve Installed Modules Without Source${colors.reset}\n`); - - let staleInstallRoot; - try { - staleInstallRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'bmad-stale-module-')); - const staleBmadDir = path.join(staleInstallRoot, '_bmad'); - const staleModuleDir = path.join(staleBmadDir, 'baut'); - await fs.ensureDir(staleModuleDir); - await fs.writeFile(path.join(staleModuleDir, 'marker.txt'), 'keep me\n', 'utf8'); - - const ui = new (require('../tools/installer/ui').UI)(); - const unavailable = await ui._findUnavailableInstalledModules(new Set(['core', 'bmm', 'baut']), staleBmadDir); - assert(unavailable.length === 1 && unavailable[0] === 'baut', 'UI detects stale installed modules with no current source'); - - const installer = new Installer(); - await installer._removeDeselectedModules( - { moduleIds: ['core', 'bmm', 'baut'] }, - { modules: ['core', 'bmm'] }, - { moduleDir: (moduleId) => path.join(staleBmadDir, moduleId) }, - ['baut'], - ); - assert(await fs.pathExists(path.join(staleModuleDir, 'marker.txt')), 'Preserved modules are not removed during modify/update installs'); - } catch (error) { - assert(false, 'Installed modules with no source are preserved during update', error.message); - } finally { - if (staleInstallRoot) await fs.remove(staleInstallRoot).catch(() => {}); - } - - console.log(''); - // ============================================================ // Test 5: Kiro Native Skills Install // ============================================================