We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2784de5 commit a9b8e35Copy full SHA for a9b8e35
test/registry/fs.test.ts
@@ -444,13 +444,13 @@ describe('fs', () => {
444
await fs.mkdir(nonEmptyDir)
445
await fs.writeFile(path.join(nonEmptyDir, 'file.txt'), '', 'utf8')
446
447
- // With ignore patterns, the empty-dir should be included because .git is ignored
+ // With ignore patterns and includeEmpty: false, directories containing only ignored files are excluded
448
const result = await readDirNames(tmpDir, {
449
ignore: ['.git'],
450
includeEmpty: false,
451
})
452
expect(result).toContain('non-empty-dir')
453
- expect(result).toContain('empty-dir')
+ expect(result).not.toContain('empty-dir')
454
}, 'readDirNames-ignore-')
455
456
0 commit comments