2019-12-09 11:42:55 +00:00
|
|
|
import { platform as _platform } from '../lib/platform';
|
|
|
|
import { getConfig } from '../lib/config/defaults';
|
2019-12-17 05:56:42 +00:00
|
|
|
import { RenovateConfig as _RenovateConfig } from '../lib/config';
|
2019-12-09 11:42:55 +00:00
|
|
|
|
2019-12-04 03:29:27 +00:00
|
|
|
/**
|
|
|
|
* Simple wrapper for getting mocked version of a module
|
|
|
|
* @param module module which is mocked by `jest.mock`
|
|
|
|
*/
|
|
|
|
export function mocked<T>(module: T): jest.Mocked<T> {
|
|
|
|
return module as never;
|
|
|
|
}
|
2019-12-09 11:42:55 +00:00
|
|
|
|
|
|
|
export const platform = mocked(_platform);
|
|
|
|
|
2019-12-17 05:56:42 +00:00
|
|
|
// Required because of isolatedModules
|
|
|
|
export type RenovateConfig = _RenovateConfig;
|
|
|
|
|
2019-12-09 11:42:55 +00:00
|
|
|
export const defaultConfig = getConfig();
|
2019-12-17 05:56:42 +00:00
|
|
|
|
|
|
|
export { getConfig };
|