Skip to content

Commit 89664ec

Browse files
committed
Fix cache path test for Windows case sensitivity
- Use case-insensitive matching for path keyword checks - Windows uses 'Yarn' (capital Y) while test expects 'yarn' (lowercase)
1 parent 4e4e4a2 commit 89664ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/registry/cache-paths.test.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ describe('package manager cache paths', () => {
2424
it('should contain expected keywords when paths are set', () => {
2525
for (const { keyword, value } of cachePaths) {
2626
if (value) {
27-
expect(value).toContain(keyword)
27+
// Use case-insensitive matching for Windows compatibility
28+
// (e.g., Windows uses 'Yarn' not 'yarn' in paths)
29+
expect(value.toLowerCase()).toContain(keyword.toLowerCase())
2830
}
2931
}
3032
})

0 commit comments

Comments
 (0)