Skip to content

Commit 15579dc

Browse files
committed
chore: wip
1 parent 0378f34 commit 15579dc

File tree

2 files changed

+32
-25
lines changed

2 files changed

+32
-25
lines changed

packages/launchpad/test/dev.test.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -348,69 +348,69 @@ describe('Dev Commands', () => {
348348
const fixturePath = path.join(fixturesDir, 'go.mod')
349349
if (fs.existsSync(fixturePath)) {
350350
const result = await testFixture(fixturePath)
351-
// go.mod is not currently recognized as a dependency file by Launchpad
351+
// go.mod is now recognized as a dependency file by Launchpad's enhanced detection
352352
expect(result.exitCode).toBe(0)
353-
expect(result.stdout).toContain('No dependency file found')
353+
expect(result.stdout).toContain('Installing')
354354
}
355355
}, 60000)
356356

357357
it('should handle Cargo.toml fixture', async () => {
358358
const fixturePath = path.join(fixturesDir, 'Cargo.toml')
359359
if (fs.existsSync(fixturePath)) {
360360
const result = await testFixture(fixturePath)
361-
// Cargo.toml is not currently recognized as a dependency file by Launchpad
361+
// Cargo.toml is now recognized as a dependency file by Launchpad's enhanced detection
362362
expect(result.exitCode).toBe(0)
363-
expect(result.stdout).toContain('No dependency file found')
363+
expect(result.stdout).toContain('Installing')
364364
}
365365
}, 60000)
366366

367367
it('should handle .node-version fixture', async () => {
368368
const fixturePath = path.join(fixturesDir, '.node-version')
369369
if (fs.existsSync(fixturePath)) {
370370
const result = await testFixture(fixturePath)
371-
// .node-version is not currently recognized as a dependency file by Launchpad
371+
// .node-version is now recognized as a dependency file by Launchpad's enhanced detection
372372
expect(result.exitCode).toBe(0)
373-
expect(result.stdout).toContain('No dependency file found')
373+
expect(result.stdout).toContain('Installing')
374374
}
375375
}, 60000)
376376

377377
it('should handle .ruby-version fixture', async () => {
378378
const fixturePath = path.join(fixturesDir, '.ruby-version')
379379
if (fs.existsSync(fixturePath)) {
380380
const result = await testFixture(fixturePath)
381-
// .ruby-version is not currently recognized as a dependency file by Launchpad
381+
// .ruby-version is now recognized as a dependency file by Launchpad's enhanced detection
382382
expect(result.exitCode).toBe(0)
383-
expect(result.stdout).toContain('No dependency file found')
383+
expect(result.stdout).toContain('Installing')
384384
}
385385
}, 60000)
386386

387387
it('should handle deno.jsonc fixture', async () => {
388388
const fixturePath = path.join(fixturesDir, 'deno.jsonc')
389389
if (fs.existsSync(fixturePath)) {
390390
const result = await testFixture(fixturePath)
391-
// deno.jsonc is not currently recognized as a dependency file by Launchpad
391+
// deno.jsonc is now recognized as a dependency file by Launchpad's enhanced detection
392392
expect(result.exitCode).toBe(0)
393-
expect(result.stdout).toContain('No dependency file found')
393+
expect(result.stdout).toContain('Installing')
394394
}
395395
}, 60000)
396396

397397
it('should handle Gemfile fixture', async () => {
398398
const fixturePath = path.join(fixturesDir, 'Gemfile')
399399
if (fs.existsSync(fixturePath)) {
400400
const result = await testFixture(fixturePath)
401-
// Gemfile is not currently recognized as a dependency file by Launchpad
401+
// Gemfile is now recognized as a dependency file by Launchpad's enhanced detection
402402
expect(result.exitCode).toBe(0)
403-
expect(result.stdout).toContain('No dependency file found')
403+
expect(result.stdout).toContain('Installing')
404404
}
405405
}, 60000)
406406

407407
it('should handle requirements.txt fixture', async () => {
408408
const fixturePath = path.join(fixturesDir, 'requirements.txt')
409409
if (fs.existsSync(fixturePath)) {
410410
const result = await testFixture(fixturePath)
411-
// requirements.txt is not currently recognized as a dependency file by Launchpad
411+
// requirements.txt is now recognized as a dependency file by Launchpad's enhanced detection
412412
expect(result.exitCode).toBe(0)
413-
expect(result.stdout).toContain('No dependency file found')
413+
expect(result.stdout).toContain('Installing')
414414
}
415415
}, 60000)
416416

@@ -441,39 +441,39 @@ describe('Dev Commands', () => {
441441
const fixturePath = path.join(fixturesDir, 'deno.json', 'std')
442442
if (fs.existsSync(fixturePath)) {
443443
const result = await testFixture(fixturePath)
444-
// deno.json is not currently recognized as a dependency file by Launchpad
444+
// deno.json is now recognized as a dependency file by Launchpad's enhanced detection
445445
expect(result.exitCode).toBe(0)
446-
expect(result.stdout).toContain('No dependency file found')
446+
expect(result.stdout).toContain('Installing')
447447
}
448448
}, 60000)
449449

450450
it('should handle pyproject.toml/std fixture', async () => {
451451
const fixturePath = path.join(fixturesDir, 'pyproject.toml', 'std')
452452
if (fs.existsSync(fixturePath)) {
453453
const result = await testFixture(fixturePath)
454-
// pyproject.toml is not currently recognized as a dependency file by Launchpad
454+
// pyproject.toml is now recognized as a dependency file by Launchpad's enhanced detection
455455
expect(result.exitCode).toBe(0)
456-
expect(result.stdout).toContain('No dependency file found')
456+
expect(result.stdout).toContain('Installing')
457457
}
458458
}, 60000)
459459

460460
it('should handle action.yml/std fixture', async () => {
461461
const fixturePath = path.join(fixturesDir, 'action.yml', 'std')
462462
if (fs.existsSync(fixturePath)) {
463463
const result = await testFixture(fixturePath)
464-
// action.yml is not currently recognized as a dependency file by Launchpad
464+
// action.yml is now recognized as a dependency file by Launchpad's enhanced detection
465465
expect(result.exitCode).toBe(0)
466-
expect(result.stdout).toContain('No dependency file found')
466+
expect(result.stdout).toContain('Installing')
467467
}
468468
}, 60000)
469469

470470
it('should handle python-version/std fixture', async () => {
471471
const fixturePath = path.join(fixturesDir, 'python-version', 'std')
472472
if (fs.existsSync(fixturePath)) {
473473
const result = await testFixture(fixturePath)
474-
// python-version is not currently recognized as a dependency file by Launchpad
474+
// .python-version is now recognized as a dependency file by Launchpad's enhanced detection
475475
expect(result.exitCode).toBe(0)
476-
expect(result.stdout).toContain('No dependency file found')
476+
expect(result.stdout).toContain('Installing')
477477
}
478478
}, 60000)
479479

packages/launchpad/test/environment-isolation.test.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,16 @@ describe('Environment Isolation', () => {
436436
expect(result.exitCode).toBe(0)
437437

438438
const shellCode = result.stdout
439-
// Should include dependency file detection logic
440-
expect(shellCode).toContain('dependencies.yaml') // Updated to match actual dependency file names
441-
expect(shellCode).toContain('dependencies.yml') // Updated to match actual dependency file names
439+
// Should include dependency file detection logic for Launchpad files
440+
expect(shellCode).toContain('dependencies.yaml')
441+
expect(shellCode).toContain('dependencies.yml')
442+
443+
// Should include enhanced project file detection
444+
expect(shellCode).toContain('Cargo.toml') // Rust projects
445+
expect(shellCode).toContain('pyproject.toml') // Python projects
446+
expect(shellCode).toContain('go.mod') // Go projects
447+
expect(shellCode).toContain('Gemfile') // Ruby projects
448+
expect(shellCode).toContain('package.json') // Node.js projects
442449

443450
// Should include activation logic (updated to match actual function names)
444451
expect(shellCode).toContain('__launchpad_chpwd')

0 commit comments

Comments
 (0)