mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
71cf56eaf9
Co-authored-by: Rhys Arkins <rhys@arkins.net>
25 lines
515 B
TypeScript
25 lines
515 B
TypeScript
const loggerLevels: string[] = [
|
|
'trace',
|
|
'debug',
|
|
'info',
|
|
'warn',
|
|
'error',
|
|
'fatal',
|
|
'child',
|
|
];
|
|
const logger: any = {};
|
|
|
|
loggerLevels.forEach(k => {
|
|
logger[k] = jest.fn();
|
|
});
|
|
|
|
export const setContext = jest.fn();
|
|
export const getContext = jest.fn();
|
|
export const setMeta = jest.fn();
|
|
export const addMeta = jest.fn();
|
|
export const removeMeta = jest.fn();
|
|
export const levels = jest.fn();
|
|
export const addStream = jest.fn();
|
|
export const getProblems = jest.fn((): any[] => []);
|
|
|
|
export { logger };
|