Skip to content

Commit

Permalink
test(smoke): add smoke tests for partial matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Jan 29, 2020
1 parent c884233 commit 0d2ee18
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/tests/smoke/regular.smoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ smoke.suite('Smoke → Regular', [
{ pattern: 'fixtures/{first,second}/**' },
{ pattern: 'fixtures/{first,second}/**/*' },

{ pattern: '@(fixtures)/{first,second}' },
{ pattern: '@(fixtures)/{first,second}/*' },

{ pattern: 'fixtures/*/{first,second}/*' },
{ pattern: 'fixtures/*/{first,second}/*/{nested,file.md}' },
{ pattern: 'fixtures/**/{first,second}/**' },
{ pattern: 'fixtures/**/{first,second}/{nested,file.md}' },
{ pattern: 'fixtures/**/{first,second}/**/{nested,file.md}' },

{ pattern: 'fixtures/{first,second}/{nested,file.md}' },
{ pattern: 'fixtures/{first,second}/*/nested/*' },
{ pattern: 'fixtures/{first,second}/**/nested/**' },

{ pattern: 'fixtures/*/{nested,file.md}/*' },
{ pattern: 'fixtures/**/{nested,file.md}/*' },

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

{ pattern: '*/{first,second}/*', cwd: 'fixtures' },
{ pattern: '*/{first,second}/*/{nested,file.md}', cwd: 'fixtures' },
{ pattern: '**/{first,second}/**', cwd: 'fixtures' },
{ pattern: '**/{first,second}/{nested,file.md}', cwd: 'fixtures' },
{ pattern: '**/{first,second}/**/{nested,file.md}', cwd: 'fixtures' },

{ pattern: '{first,second}/{nested,file.md}', cwd: 'fixtures' },
{ pattern: '{first,second}/*/nested/*', cwd: 'fixtures' },
{ pattern: '{first,second}/**/nested/**', cwd: 'fixtures' },

{ pattern: '*/{nested,file.md}/*', cwd: 'fixtures' },
{ pattern: '**/{nested,file.md}/*', cwd: 'fixtures' },

Expand Down

0 comments on commit 0d2ee18

Please sign in to comment.