mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
2db76034b1
* feat(server): correlation id via injected logger * feat: cid response header
15 lines
355 B
TypeScript
15 lines
355 B
TypeScript
import { ILoggerRepository } from 'src/interfaces/logger.interface';
|
|
|
|
export const newLoggerRepositoryMock = (): jest.Mocked<ILoggerRepository> => {
|
|
return {
|
|
setLogLevel: jest.fn(),
|
|
setContext: jest.fn(),
|
|
|
|
verbose: jest.fn(),
|
|
debug: jest.fn(),
|
|
log: jest.fn(),
|
|
warn: jest.fn(),
|
|
error: jest.fn(),
|
|
fatal: jest.fn(),
|
|
};
|
|
};
|