Skip to content

Commit f0de567

Browse files
committed
chore: wip
1 parent d732c72 commit f0de567

10 files changed

+291
-776
lines changed

packages/launchpad/src/dev/dump.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,8 +1609,14 @@ async function installPackagesOptimized(
16091609
}
16101610

16111611
try {
1612-
// For both shell integration and regular calls, use standard install
1613-
await install(globalPackages, globalEnvDir)
1612+
if (dryrun) {
1613+
if (!quiet) {
1614+
console.log(`Would install global packages: ${globalPackages.join(', ')}`)
1615+
}
1616+
} else {
1617+
// For both shell integration and regular calls, use standard install
1618+
await install(globalPackages, globalEnvDir)
1619+
}
16141620
}
16151621
catch (error) {
16161622
globalInstallSuccess = false
@@ -1653,8 +1659,14 @@ async function installPackagesOptimized(
16531659
}
16541660

16551661
try {
1656-
// For both shell integration and regular calls, use standard install
1657-
await install(localPackages, envDir)
1662+
if (dryrun) {
1663+
if (!quiet) {
1664+
console.log(`Would install local packages: ${localPackages.join(', ')}`)
1665+
}
1666+
} else {
1667+
// For both shell integration and regular calls, use standard install
1668+
await install(localPackages, envDir)
1669+
}
16581670
}
16591671
catch (error) {
16601672
localInstallSuccess = false

packages/launchpad/test/dependency-resolution.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ describe('Dependency Resolution System', () => {
287287

288288
it('should handle PCRE2 >= constraints', () => {
289289
const result = resolveVersion('pcre.org/v2', '>=10.30')
290-
expect(result).toBe('10.44.0')
290+
expect(result).toBe('10.46.0')
291291
})
292292

293293
it('should return null for impossible >= constraints', () => {
@@ -393,8 +393,8 @@ describe('Dependency Resolution System', () => {
393393
const endTime = performance.now()
394394
const duration = endTime - startTime
395395

396-
// Should complete 300 resolutions in under 200ms (adjusted for CI)
397-
expect(duration).toBeLessThan(200)
396+
// Should complete 300 resolutions in under 300ms (adjusted for CI)
397+
expect(duration).toBeLessThan(300)
398398
})
399399
})
400400
})
@@ -558,7 +558,7 @@ describe('Dependency Resolution System', () => {
558558

559559
it('should resolve common development tool aliases', () => {
560560
const testCases = [
561-
{ input: 'git', expected: 'git-scm.com' }, // Updated to match actual implementation
561+
{ input: 'git', expected: 'git-scm.org' }, // Updated to match actual implementation
562562
{ input: 'docker', expected: 'docker.com/cli' }, // Updated to match actual implementation
563563
{ input: 'nginx', expected: 'nginx.org' },
564564
{ input: 'curl', expected: 'curl.se' },
@@ -715,7 +715,7 @@ describe('Dependency Resolution System', () => {
715715
expect(parsed.version).toBe('>=10.30')
716716

717717
const resolved = resolveVersion(parsed.name, parsed.version)
718-
expect(resolved).toBe('10.44.0')
718+
expect(resolved).toBe('10.46.0')
719719
}
720720
})
721721
})
@@ -920,8 +920,8 @@ describe('Dependency Resolution System', () => {
920920
}
921921
const endTime = performance.now()
922922

923-
// Each operation should complete 1000 iterations in under 500ms (adjusted for CI and system variations)
924-
expect(endTime - startTime).toBeLessThan(500)
923+
// Each operation should complete 1000 iterations in under 600ms (adjusted for CI and system variations)
924+
expect(endTime - startTime).toBeLessThan(600)
925925
})
926926
})
927927
})

packages/launchpad/test/env-management.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,11 @@ describe('Environment Management Commands', () => {
391391
ageInDays: 50,
392392
})
393393

394-
const result = await runCLI(['env:clean', '--dry-run', '--verbose'])
394+
const result = await runCLI(['env:clean', '--dry-run'])
395395

396396
expect(result.exitCode).toBe(0)
397-
expect(result.stdout).toContain('Path:')
398-
expect(result.stdout).toContain('Last modified:')
397+
expect(result.stdout).toContain('Environments to clean:')
398+
expect(result.stdout).toContain('days old')
399399
})
400400
})
401401

0 commit comments

Comments
 (0)