n8n/packages/core/test/helpers/utils.ts

16 lines
300 B
TypeScript

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