mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 01:37:24 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
import { matchRegexOrGlobList } from '../../../util/string-match.ts';
|
|
import { defaultConfig } from './index.ts';
|
|
|
|
describe('modules/manager/circleci/index', () => {
|
|
describe('file names match managerFilePatterns', () => {
|
|
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}
|
|
`('matchRegexOrGlobList("$path") === $expected', ({ path, expected }) => {
|
|
expect(
|
|
matchRegexOrGlobList(path, defaultConfig.managerFilePatterns),
|
|
).toBe(expected);
|
|
});
|
|
});
|
|
});
|