Skip to content

Commit 9261b20

Browse files
committed
chore: add console log for troubleshooting test
1 parent 7613de3 commit 9261b20

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/__tests__/index.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)