Add test for when not all globs match any changed file

This commit is contained in:
Josh Dales
2023-04-13 14:58:52 -04:00
parent d4d4a104a2
commit 2637d23bca

View File

@@ -50,6 +50,15 @@ describe('checkAnyChangedFiles', () => {
expect(result).toBe(false);
});
});
describe('when all globs do match match any of the files that have changed', () => {
const globs = ['*.txt', '*.md'];
it('returns false', () => {
const result = checkAnyChangedFiles(changedFiles, globs);
expect(result).toBe(false);
});
});
});
describe('toChangedFilesMatchConfig', () => {