Skip to content

Commit 0d2ee18

Browse files
committed
test(smoke): add smoke tests for partial matching
1 parent c884233 commit 0d2ee18

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/tests/smoke/regular.smoke.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ smoke.suite('Smoke → Regular', [
1818
{ pattern: 'fixtures/{first,second}/**' },
1919
{ pattern: 'fixtures/{first,second}/**/*' },
2020

21+
{ pattern: '@(fixtures)/{first,second}' },
22+
{ pattern: '@(fixtures)/{first,second}/*' },
23+
24+
{ pattern: 'fixtures/*/{first,second}/*' },
25+
{ pattern: 'fixtures/*/{first,second}/*/{nested,file.md}' },
26+
{ pattern: 'fixtures/**/{first,second}/**' },
27+
{ pattern: 'fixtures/**/{first,second}/{nested,file.md}' },
28+
{ pattern: 'fixtures/**/{first,second}/**/{nested,file.md}' },
29+
30+
{ pattern: 'fixtures/{first,second}/{nested,file.md}' },
31+
{ pattern: 'fixtures/{first,second}/*/nested/*' },
32+
{ pattern: 'fixtures/{first,second}/**/nested/**' },
33+
2134
{ pattern: 'fixtures/*/{nested,file.md}/*' },
2235
{ pattern: 'fixtures/**/{nested,file.md}/*' },
2336

@@ -42,6 +55,16 @@ smoke.suite('Smoke → Regular (cwd)', [
4255
{ pattern: '{first,second}/**', cwd: 'fixtures' },
4356
{ pattern: '{first,second}/**/*', cwd: 'fixtures' },
4457

58+
{ pattern: '*/{first,second}/*', cwd: 'fixtures' },
59+
{ pattern: '*/{first,second}/*/{nested,file.md}', cwd: 'fixtures' },
60+
{ pattern: '**/{first,second}/**', cwd: 'fixtures' },
61+
{ pattern: '**/{first,second}/{nested,file.md}', cwd: 'fixtures' },
62+
{ pattern: '**/{first,second}/**/{nested,file.md}', cwd: 'fixtures' },
63+
64+
{ pattern: '{first,second}/{nested,file.md}', cwd: 'fixtures' },
65+
{ pattern: '{first,second}/*/nested/*', cwd: 'fixtures' },
66+
{ pattern: '{first,second}/**/nested/**', cwd: 'fixtures' },
67+
4568
{ pattern: '*/{nested,file.md}/*', cwd: 'fixtures' },
4669
{ pattern: '**/{nested,file.md}/*', cwd: 'fixtures' },
4770

0 commit comments

Comments
 (0)