We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa4857 commit 6239d0fCopy full SHA for 6239d0f
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