mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
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',
|
|
},
|
|
);
|
|
});
|
|
});
|