test: drop stale baut regression case

This commit is contained in:
Dicky Moore 2026-05-18 09:27:03 +01:00
parent 97f31f8a7e
commit 3cf5f0b31c
1 changed files with 0 additions and 33 deletions

View File

@ -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
// ============================================================