test: update getSelectionPrompt test for new no-spawn behavior

The prompt no longer lists "Available package managers" (which required
spawning processes) — it now shows "Supported package managers" and
mentions lock file detection as a configuration option.

All 69 tests pass.
This commit is contained in:
Affaan Mustafa
2026-02-12 12:20:27 -08:00
parent 7356fd996f
commit 501bf23ca0

View File

@@ -335,8 +335,9 @@ function runTests() {
if (test('returns informative prompt', () => {
const prompt = pm.getSelectionPrompt();
assert.ok(prompt.includes('Available package managers'), 'Should list available managers');
assert.ok(prompt.includes('Supported package managers'), 'Should list supported managers');
assert.ok(prompt.includes('CLAUDE_PACKAGE_MANAGER'), 'Should mention env var');
assert.ok(prompt.includes('lock file'), 'Should mention lock file option');
})) passed++; else failed++;
// Summary