mirror of https://github.com/renovatebot/renovate
27 lines
704 B
TypeScript
27 lines
704 B
TypeScript
import type { RequiredConfig } from '../../types';
|
|
import { RequireConfigMigration } from './require-config-migration';
|
|
|
|
describe('config/migrations/custom/require-config-migration', () => {
|
|
it('should migrate requireConfig=true to requireConfig=required', () => {
|
|
expect(RequireConfigMigration).toMigrate(
|
|
{
|
|
requireConfig: 'true' as RequiredConfig,
|
|
},
|
|
{
|
|
requireConfig: 'required',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should migrate requireConfig=false to requireConfig=optional', () => {
|
|
expect(RequireConfigMigration).toMigrate(
|
|
{
|
|
requireConfig: 'false' as RequiredConfig,
|
|
},
|
|
{
|
|
requireConfig: 'optional',
|
|
},
|
|
);
|
|
});
|
|
});
|