Skip to content

Commit

Permalink
Merge branch 'main' into super-fast-globi
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Nov 4, 2024
2 parents 4055dd4 + 0f7bfaa commit f79ce16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ test('dot', async () => {
assert.deepEqual(files.sort(), ['a/a.txt']);
});

test('no common path optimization', async () => {
const files = await glob({ patterns: ['.deep/a/a/*.txt', 'a/a.*'], cwd });
assert.deepEqual(files.sort(), ['.deep/a/a/a.txt', 'a/a.txt']);
});

test('deep', async () => {
const files = await glob({ patterns: ['.deep/a/a/*.txt'], deep: 3, cwd });
assert.deepEqual(files.sort(), ['.deep/a/a/a.txt']);
Expand Down

0 comments on commit f79ce16

Please sign in to comment.