renovate/test/util.ts

7 lines
203 B
TypeScript

/**
* 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;
}