Skip to content

Commit 3fa0a53

Browse files
committed
chore: lint
1 parent 27b62e1 commit 3fa0a53

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/regression-deps-constraint.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { PackageUpdate } from '../src/types'
23
import { describe, expect, it } from 'bun:test'
34
import { updateDependencyFile } from '../src/utils/dependency-file-parser'
@@ -54,13 +55,13 @@ dependencies:
5455
const result = await updateDependencyFile('deps.yaml', content, updates)
5556

5657
// CRITICAL: These are the exact assertions that must pass to prevent regression
57-
expect(result).toContain('zip: ^3.0.0') // zip should be updated to ^3.0.0
58+
expect(result).toContain('zip: ^3.0.0') // zip should be updated to ^3.0.0
5859
expect(result).toContain('unzip: ^6.0.0') // unzip should be updated to ^6.0.0 (NOT ^3.0.0!)
59-
60+
6061
// Ensure no cross-contamination happened
6162
expect(result).not.toContain('unzip: ^3.0.0') // This was the bug - unzip getting zip's version
6263
expect(result).not.toMatch(/^\s*zip: \^6\.0\.0/m) // zip should not get unzip's version
63-
64+
6465
// Verify other packages remain unchanged
6566
expect(result).toContain('aws/cli: ^2.22.26')
6667
expect(result).toContain('bun: ^1.2.13')
@@ -126,7 +127,7 @@ dependencies:
126127
expect(result).toContain('bun: ^1.2.19')
127128
expect(result).toContain('zip: ^3.0.0')
128129
expect(result).toContain('unzip: ^6.0.0') // MUST be ^6.0.0, not ^3.0.0!
129-
130+
130131
// Log the result for debugging if the test fails
131132
if (result.includes('unzip: ^3.0.0')) {
132133
console.log('REGRESSION: unzip got wrong version!')

0 commit comments

Comments
 (0)