mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import { partial } from '~test/util.ts';
|
|
import type { CustomManager } from '../../../modules/manager/custom/types.ts';
|
|
import { CustomManagersMigration } from './custom-managers-migration.ts';
|
|
|
|
describe('config/migrations/custom/custom-managers-migration', () => {
|
|
it('migrates', async () => {
|
|
await expect(CustomManagersMigration).toMigrate(
|
|
{
|
|
customManagers: partial<CustomManager>([
|
|
{
|
|
managerFilePatterns: ['js', '***$}{]]['],
|
|
matchStrings: ['^(?<depName>foo)(?<currentValue>bar)$'],
|
|
datasourceTemplate: 'maven',
|
|
versioningTemplate: 'gradle',
|
|
},
|
|
{
|
|
customType: 'regex',
|
|
managerFilePatterns: ['js', '***$}{]]['],
|
|
matchStrings: ['^(?<depName>foo)(?<currentValue>bar)$'],
|
|
datasourceTemplate: 'maven',
|
|
versioningTemplate: 'gradle',
|
|
},
|
|
]),
|
|
},
|
|
{
|
|
customManagers: [
|
|
{
|
|
customType: 'regex',
|
|
managerFilePatterns: ['js', '***$}{]]['],
|
|
matchStrings: ['^(?<depName>foo)(?<currentValue>bar)$'],
|
|
datasourceTemplate: 'maven',
|
|
versioningTemplate: 'gradle',
|
|
},
|
|
{
|
|
customType: 'regex',
|
|
managerFilePatterns: ['js', '***$}{]]['],
|
|
matchStrings: ['^(?<depName>foo)(?<currentValue>bar)$'],
|
|
datasourceTemplate: 'maven',
|
|
versioningTemplate: 'gradle',
|
|
},
|
|
],
|
|
},
|
|
);
|
|
});
|
|
});
|