File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,15 +286,13 @@ describe('copyfiles', () => {
286286 } ) ;
287287
288288 test ( 'sets followSymbolicLinks when options.follow is true' , ( ) => new Promise ( ( done : any ) => {
289- if ( process . platform === 'win32' ) return done ( ) ; // skip on Windows
289+ if ( process . platform === 'win32' ) return done ( ) ;
290290 mkdirSync ( 'input/real' , { recursive : true } ) ;
291291 writeFileSync ( 'input/real/a.txt' , 'test' ) ;
292292 symlinkSync ( 'real' , 'input/link' ) ;
293293 copyfiles ( [ 'input/link/*.txt' , 'output' ] , { follow : true } , ( err ) => {
294+ console . log ( 'output contents:' , globSync ( 'output/**/*' , { dot : true } ) ) ;
294295 expect ( err ) . toBeUndefined ( ) ;
295- // The copied file should be at output/a.txt (not output/link/a.txt) if your copy logic flattens symlinks
296- // Or at output/link/a.txt if it preserves the symlink structure
297- // Adjust this check to match your implementation:
298296 expect ( existsSync ( 'output/link/a.txt' ) || existsSync ( 'output/a.txt' ) ) . toBe ( true ) ;
299297 done ( ) ;
300298 } ) ;
You can’t perform that action at this time.
0 commit comments