Move all changedFiles logic into it's own file

This commit is contained in:
Josh Dales
2023-03-18 15:41:09 -04:00
parent 9f259ee115
commit 1ce9b356f6
3 changed files with 134 additions and 125 deletions

View File

@@ -10,11 +10,7 @@ beforeAll(() => {
});
});
// I have to double cast here as this is what the output from js-yaml looks like which then gets
// transformed in toMatchConfig
const matchConfig = [
{'changed-files': [{any: ['*.txt']}]}
] as unknown as MatchConfig[];
const matchConfig: MatchConfig[] = [{changedFiles: {any: ['*.txt']}}];
describe('checkMatchConfigs', () => {
it('returns true when our pattern does match changed files', () => {