mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Make Logger a service (no-changelog) (#7494)
This commit is contained in:
committed by
GitHub
parent
db4e61ba24
commit
05586a900d
@@ -6,20 +6,7 @@ import {
|
||||
setWorkflowExecutionMetadata,
|
||||
ExecutionMetadataValidationError,
|
||||
} from '@/WorkflowExecutionMetadata';
|
||||
import { LoggerProxy } from 'n8n-workflow';
|
||||
import type { ILogger, IRunExecutionData } from 'n8n-workflow';
|
||||
|
||||
beforeAll(() => {
|
||||
const fakeLogger = {
|
||||
log: () => {},
|
||||
debug: () => {},
|
||||
verbose: () => {},
|
||||
info: () => {},
|
||||
warn: () => {},
|
||||
error: () => {},
|
||||
} as ILogger;
|
||||
LoggerProxy.init(fakeLogger);
|
||||
});
|
||||
import type { IRunExecutionData } from 'n8n-workflow';
|
||||
|
||||
describe('Execution Metadata functions', () => {
|
||||
test('setWorkflowExecutionMetadata will set a value', () => {
|
||||
|
||||
Reference in New Issue
Block a user