0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-12 15:26:58 +00:00
renovatebot_renovate/lib/config/migrations/custom/enabled-managers-migration.spec.ts
RahulGautamSingh 79556f4ecb
refactor(enabled-managers): implement custom.<customMgrName> syntax (#24079)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-08 13:13:26 +00:00

30 lines
675 B
TypeScript

import { EnabledManagersMigration } from './enabled-managers-migration';
describe('config/migrations/custom/enabled-managers-migration', () => {
it('migrates', () => {
expect(EnabledManagersMigration).toMigrate(
{
enabledManagers: ['test1', 'yarn', 'test2', 'regex', 'custom.regex'],
},
{
enabledManagers: [
'test1',
'npm',
'test2',
'custom.regex',
'custom.regex',
],
},
);
// coverage
expect(EnabledManagersMigration).not.toMigrate(
{
enabledManagers: undefined,
},
{
enabledManagers: undefined,
},
);
});
});