Skip to content

Commit 66f607e

Browse files
committed
chore: wip
1 parent 0a1a58a commit 66f607e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

buddy-bot.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const config: BuddyBotConfig = {
3232
ignorePaths: [
3333
// Add file/directory paths to ignore using glob patterns
3434
// Example: 'packages/test-*/**', '**/*test-envs/**', 'apps/legacy/**'
35+
'packages/launchpad/test-envs/**',
3536
],
3637
},
3738
verbose: false,

packages/launchpad/test/dev.test.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,13 @@ describe('Dev Commands', () => {
623623
try {
624624
const result = await runCLI(['dev', tempDir])
625625
// Should handle permission errors gracefully
626-
expect(result.exitCode).toBe(1)
626+
// The runCLI function returns exitCode -13 for EACCES errors, or 1 for other errors
627+
expect(result.exitCode).toBeOneOf([1, -13])
628+
629+
// If it's a permission error, stderr should contain error info
630+
if (result.exitCode === -13) {
631+
expect(result.stderr).toMatch(/Process error.*EACCES|permission denied/i)
632+
}
627633
}
628634
catch (error) {
629635
// Permission errors during process spawn are also acceptable
@@ -817,7 +823,9 @@ describe('Dev Commands', () => {
817823
expect(result1.exitCode).toBe(0)
818824
}
819825
else {
820-
expect(cleanOutput1).toMatch(/ bun\.sh|Successfully installed|No new files installed/)
826+
// Check for success indicators, allowing for installation warnings
827+
const hasSuccessIndicator = cleanOutput1.match(/ bun\.sh|Successfully installed|No new files installed|Environment activated/)
828+
expect(hasSuccessIndicator).toBeTruthy()
821829
const ok1 = cleanOutput1.includes('Successfully set up environment') || cleanOutput1.includes('Environment activated')
822830
expect(ok1).toBe(true)
823831
}
@@ -834,7 +842,9 @@ describe('Dev Commands', () => {
834842
expect(result2.exitCode).toBe(0)
835843
}
836844
else {
837-
expect(cleanOutput2).toMatch(/ bun\.sh|Successfully installed|No new files installed/)
845+
// Check for success indicators, allowing for installation warnings
846+
const hasSuccessIndicator = cleanOutput2.match(/ bun\.sh|Successfully installed|No new files installed|Environment activated/)
847+
expect(hasSuccessIndicator).toBeTruthy()
838848
const ok2 = cleanOutput2.includes('Successfully set up environment') || cleanOutput2.includes('Environment activated')
839849
expect(ok2).toBe(true)
840850
}

0 commit comments

Comments
 (0)