n8n/packages/core/test/utils.ts

16 lines
300 B
TypeScript
Raw Normal View History

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);
};