mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import { platform as _platform } from '../lib/platform';
|
|
import { getConfig } from '../lib/config/defaults';
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
export const platform = mocked(_platform);
|
|
|
|
export const defaultConfig = getConfig();
|