Skip to content

Commit

Permalink
chore: tests reflect fixed ignore-walk rules
Browse files Browse the repository at this point in the history
Directory overrides was buggy
  • Loading branch information
wraithgar committed Dec 6, 2023
1 parent 6058cc5 commit 8e1d900
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions test/bundled-file-in-workspace.js
Expand Up @@ -36,7 +36,6 @@ t.test('correctly filters files from workspace subdirectory', async (t) => {
t.same(files, [
'index.js',
'package.json',
'docs/readme.md', // readme.md is always included
'docs/bar.txt',
'docs/foo.txt',
])
Expand Down Expand Up @@ -85,7 +84,6 @@ t.test('does not filter based on package.json if subdirectory is not a workspace
t.same(files, [
'index.js',
'package.json',
'docs/readme.md', // readme.md is always included
'docs/bar.txt',
'docs/baz.txt', // was _not_ filtered
'docs/foo.txt',
Expand Down
5 changes: 1 addition & 4 deletions test/package-json-nested-readme-include-npmignore.js
@@ -1,4 +1,4 @@
// include readme.* files anywhere in a package
// readme rules can be overridden by files array
'use strict'

const Arborist = require('@npmcli/arborist')
Expand Down Expand Up @@ -60,8 +60,5 @@ t.test('package with negated files', async (t) => {
'lib/a/b/b.js',
'lib/a/b/c/c.js',
'package.json',
'lib/a/b/c/readme.md',
'lib/a/b/readme.md',
'lib/a/readme.md',
])
})

0 comments on commit 8e1d900

Please sign in to comment.