This commit is contained in:
sebseb7
2025-08-11 23:09:58 +02:00
parent b91c4bf5e7
commit 5090d2669b

View File

@@ -155,7 +155,7 @@ function cases() {
name: 'filePattern include-only excludes md',
before: { 'a.txt': 'hit', 'b.md': 'hit' },
args: async ({ dir }) => ({ pattern: 'hit', filePattern: path.relative(chrootRoot, path.join(dir, '**/*.txt')), n_flag: true, i_flag: false }),
expect: { equals: `${path.relative(chrootRoot, path.join(sandboxRoot, '08-filepattern-negation-excludes-md/a.txt'))}:1:hit` }
expect: { equals: `${path.relative(chrootRoot, path.join(sandboxRoot, '08-filepattern-include-only-excludes-md/a.txt'))}:1:hit` }
});
// 9. Empty filePattern searches all (we'll scope to the case dir by pattern and path shape)