Skip to content

Commit

Permalink
fixup! feat(cli): handle patterns correctly on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Jun 18, 2024
1 parent 9b23d71 commit 2e88a70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ jobs:
- name: Install deps
run: npm ci

# Skip linter in Windows test.
- name: Run formatter
run: npm run format
if: ${{ !cancelled() }}

# Skip linter & formatter in Windows test.
- name: Run tsc
run: npm run check
if: ${{ !cancelled() }}
Expand Down
3 changes: 2 additions & 1 deletion cli/src/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ const tests: Test[] = [
{
test: 'should support ignoring absolute paths',
options: {
pathsToCrawl: ['/'],
// Currently, fast-glob has some caveat when dealing with `/`.
pathsToCrawl: ['/*s'],
recursive: true,
exclusionPattern: '/images/**',
},
Expand Down

0 comments on commit 2e88a70

Please sign in to comment.