add isDebugEnabled to all logger mocks

This commit is contained in:
einhornimmond 2025-06-27 14:25:03 +02:00
parent e83ca0a40e
commit 5683f686d3
2 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,9 @@ const getLoggerMocked = mock().mockImplementation((param: any) => {
}),
clearContext: jest.fn(() => {
fakeLogger.context.clear()
}),
isDebugEnabled: jest.fn(() => {
return true
})
}
loggers[param] = fakeLogger

View File

@ -83,6 +83,9 @@ const getLoggerMocked = vi.fn().mockImplementation((param: any) => {
}),
clearContext: vi.fn(() => {
fakeLogger.context.clear()
}),
isDebugEnabled: vi.fn(() => {
return true
})
}
loggers[param] = fakeLogger