0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00
immich/server/test/repositories/logger.repository.mock.ts

16 lines
355 B
TypeScript
Raw Normal View History

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