@@ -2,6 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from 'vitest';
22import fs from 'fs' ;
33import path from 'path' ;
44import os from 'os' ;
5+ import { execSync } from 'child_process' ;
56import {
67 findFiles ,
78 expandBraceSets ,
@@ -184,9 +185,9 @@ describe('filewalker', () => {
184185 expect ( result ) . toBe ( false ) ;
185186 } ) ;
186187
187- it ( 'handles case insensitive matching' , ( ) => {
188+ it ( 'is case sensitive for glob matching' , ( ) => {
188189 const result = matchesGlobPattern ( 'src/App.JS' , '**/*.js' ) ;
189- expect ( result ) . toBe ( true ) ;
190+ expect ( result ) . toBe ( false ) ;
190191 } ) ;
191192
192193 it ( 'handles patterns without separators' , ( ) => {
@@ -278,13 +279,12 @@ describe('filewalker', () => {
278279
279280 try {
280281 // Try to create a FIFO (named pipe) - only works on Unix-like systems
281- const { execSync } = require ( 'child_process' ) ;
282282 execSync ( `mkfifo "${ pipePath } "` ) ;
283283
284284 const result = getPatternBaseDir ( tmpDir , 'testpipe' ) ;
285285 // FIFO is neither file nor directory
286286 expect ( result ) . toBeNull ( ) ;
287- } catch ( err ) {
287+ } catch {
288288 // Skip on Windows or if mkfifo not available
289289 console . log ( 'FIFO test skipped - not supported on this system' ) ;
290290 expect ( true ) . toBe ( true ) ; // Dummy assertion so test doesn't fail
@@ -409,7 +409,6 @@ describe('filewalker', () => {
409409 } ) ;
410410
411411 it ( 'walks extra roots for patterns outside cwd' , async ( ) => {
412- const parentDir = path . dirname ( tmpDir ) ;
413412 const srcDir = path . join ( tmpDir , 'src' ) ;
414413 fs . mkdirSync ( srcDir ) ;
415414 fs . writeFileSync ( path . join ( srcDir , 'app.js' ) , '' ) ;
0 commit comments