Skip to content

Commit 349e15d

Browse files
committed
Fix Kiro IDE tests - move to unit tests with proper setup
- Remove problematic feature test that used Laravel helpers - Add Kiro detection tests to existing unit test suite - Follow established testing patterns with temporary directories - Ensure tests don't depend on Laravel application context
1 parent 32caecd commit 349e15d

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

tests/Feature/Install/CodeEnvironmentsDetectorTest.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/Unit/Install/CodeEnvironmentsDetectorTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,24 @@
236236
unlink($tempDir.'/CLAUDE.md');
237237
rmdir($tempDir);
238238
});
239+
240+
test('discoverProjectInstalledCodeEnvironments detects kiro with kiro directory', function () {
241+
$tempDir = sys_get_temp_dir().'/boost_test_'.uniqid();
242+
mkdir($tempDir);
243+
mkdir($tempDir.'/.kiro');
244+
245+
$detected = $this->detector->discoverProjectInstalledCodeEnvironments($tempDir);
246+
247+
expect($detected)->toContain('kiro');
248+
249+
// Cleanup
250+
rmdir($tempDir.'/.kiro');
251+
rmdir($tempDir);
252+
});
253+
254+
test('getCodeEnvironments includes kiro', function () {
255+
$environments = $this->detector->getCodeEnvironments();
256+
257+
expect($environments)->toHaveKey('kiro');
258+
expect($environments->get('kiro'))->toBeInstanceOf(\Laravel\Boost\Install\CodeEnvironment\Kiro::class);
259+
});

0 commit comments

Comments
 (0)