renovate/lib/config/definitions.spec.ts

13 lines
388 B
TypeScript

import { getName } from '../../test/util';
import { getOptions } from './definitions';
jest.mock('../manager', () => ({
getManagers: jest.fn(() => new Map().set('testManager', {})),
}));
describe(getName(), () => {
it('test manager should have no defaultConfig', () => {
const opts = getOptions();
expect(opts.filter((o) => o.name === 'testManager')).toEqual([]);
});
});