n8n/packages/core/test/utils.ts

15 lines
264 B
TypeScript
Raw Normal View History

import { ILogger, LoggerProxy } from 'n8n-workflow';
const fakeLogger = {
log: () => {},
debug: () => {},
verbose: () => {},
info: () => {},
warn: () => {},
error: () => {},
} as ILogger;
export const initLogger = () => {
LoggerProxy.init(fakeLogger);
};