Files
renovate/lib/config/migrations/custom/include-forks-migration.spec.ts
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00

35 lines
735 B
TypeScript

import { IncludeForksMigration } from './include-forks-migration.ts';
describe('config/migrations/custom/include-forks-migration', () => {
it('should migrate true', async () => {
await expect(IncludeForksMigration).toMigrate(
{
includeForks: true,
},
{
forkProcessing: 'enabled',
},
);
});
it('should migrate false', async () => {
await expect(IncludeForksMigration).toMigrate(
{
includeForks: false,
},
{
forkProcessing: 'disabled',
},
);
});
it('should not migrate non boolean value', async () => {
await expect(IncludeForksMigration).toMigrate(
{
includeForks: 'test',
},
{},
);
});
});