Skip to content

Commit 4537b7d

Browse files
committed
chore: wip
1 parent 88f690e commit 4537b7d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/composer-registry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('RegistryClient - Composer Integration', () => {
3232
// Mock file system operations
3333
spyOn(fs, 'existsSync').mockReturnValue(true)
3434
spyOn(fs, 'readFileSync').mockReturnValue(JSON.stringify({
35-
require: {
35+
'require': {
3636
'php': '^8.1',
3737
'laravel/framework': '^10.0',
3838
'guzzlehttp/guzzle': '^7.0',

test/package-scanner-ignore-paths.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,22 @@ describe('PackageScanner IgnorePaths Integration', () => {
2020
try {
2121
// Change back to original directory first, before deleting the test directory
2222
process.chdir(originalCwd)
23-
} catch (error) {
23+
}
24+
catch {
2425
// If we can't change back to original directory, try to change to a safe directory
2526
try {
2627
process.chdir(tmpdir())
27-
} catch {
28+
}
29+
catch {
2830
// If all else fails, change to root
2931
process.chdir('/')
3032
}
3133
}
3234

3335
try {
3436
await fs.rm(testDir, { recursive: true, force: true })
35-
} catch (error) {
37+
}
38+
catch (error) {
3639
// Ignore cleanup errors - the temp directory will be cleaned up by the OS eventually
3740
console.warn(`Failed to clean up test directory ${testDir}:`, error)
3841
}

0 commit comments

Comments
 (0)