mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
25 lines
983 B
TypeScript
25 lines
983 B
TypeScript
import { regexMatches } from '../../../../test/util';
|
|
import { defaultConfig } from '.';
|
|
|
|
describe('modules/manager/circleci/index', () => {
|
|
describe('file names match fileMatch', () => {
|
|
it.each`
|
|
path | expected
|
|
${'.circleci/config.yml'} | ${true}
|
|
${'.circleci/config.yaml'} | ${true}
|
|
${'.circleci/foo.yaml'} | ${true}
|
|
${'.circleci/foo.yml'} | ${true}
|
|
${'.circleci/foo/config.yaml'} | ${true}
|
|
${'.circleci/foo/bar.yml'} | ${true}
|
|
${'foo/.circleci/bar.yaml'} | ${true}
|
|
${'foo.yml'} | ${false}
|
|
${'circleci/foo.yml'} | ${false}
|
|
${'circleci/foo.yml'} | ${false}
|
|
${'.circleci_foo/bar.yml'} | ${false}
|
|
${'.circleci/foo.toml'} | ${false}
|
|
`('regexMatches("$path") === $expected', ({ path, expected }) => {
|
|
expect(regexMatches(path, defaultConfig.fileMatch)).toBe(expected);
|
|
});
|
|
});
|
|
});
|