mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add isDebugEnabled to all logger mocks
This commit is contained in:
parent
e83ca0a40e
commit
5683f686d3
@ -81,6 +81,9 @@ const getLoggerMocked = mock().mockImplementation((param: any) => {
|
||||
}),
|
||||
clearContext: jest.fn(() => {
|
||||
fakeLogger.context.clear()
|
||||
}),
|
||||
isDebugEnabled: jest.fn(() => {
|
||||
return true
|
||||
})
|
||||
}
|
||||
loggers[param] = fakeLogger
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user