Skip to content

Commit

Permalink
build: does minimatch 6 break things
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 10, 2024
1 parent fcdcd37 commit e7626cd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/test-exclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ t.test('ignores ./', t =>
]
})
);
/*()

t.test('ignores ./test and ./tests', t =>
testHelper(t, {
no: ['./test/index.js', './tests/index.js']
})
);

t.test('matches files in root with ** /', t =>
t.test('matches files in root with **/', t =>
testHelper(t, {
no: ['__tests__/**']
})
Expand Down Expand Up @@ -143,7 +143,7 @@ t.test(
t =>
testHelper(t, {
options: {
exclude: ['!** /node_modules/**']
exclude: ['!**/node_modules/**']
},
yes: [
'./banana/node_modules/cat.js',
Expand All @@ -160,7 +160,7 @@ t.test(
t =>
testHelper(t, {
options: {
exclude: ['!** /node_modules/some/module/to/cover.js']
exclude: ['!**/node_modules/some/module/to/cover.js']
},
no: ['./banana/node_modules/cat.js'],
yes: [
Expand All @@ -178,7 +178,7 @@ t.test(
testHelper(t, {
options: {
excludeNodeModules: false,
exclude: ['node_modules/**', '** /__test__/**']
exclude: ['node_modules/**', '**/__test__/**']
},
no: [
'node_modules/cat.js',
Expand Down Expand Up @@ -266,7 +266,7 @@ t.test(
t.test('allows exclude/include rule to be a string', t =>
testHelper(t, {
options: {
exclude: 'src/** /*.spec.js',
exclude: 'src/**/*.spec.js',
include: 'src/**'
},
no: ['src/batman/robin/foo.spec.js'],
Expand All @@ -284,4 +284,3 @@ t.test('tolerates undefined exclude/include', t =>
yes: ['index.js']
})
);
*/

0 comments on commit e7626cd

Please sign in to comment.