2024-04-15 16:39:06 -07:00
|
|
|
import { ILoggerRepository } from 'src/interfaces/logger.interface';
|
2024-04-16 07:44:45 -07:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2024-04-15 16:39:06 -07:00
|
|
|
|
2024-04-16 07:44:45 -07:00
|
|
|
export const newLoggerRepositoryMock = (): Mocked<ILoggerRepository> => {
|
2024-04-15 16:39:06 -07:00
|
|
|
return {
|
2024-04-16 07:44:45 -07:00
|
|
|
setLogLevel: vitest.fn(),
|
|
|
|
setContext: vitest.fn(),
|
2024-05-14 07:28:20 -07:00
|
|
|
setAppName: vitest.fn(),
|
2024-04-15 16:39:06 -07:00
|
|
|
|
2024-04-16 07:44:45 -07:00
|
|
|
verbose: vitest.fn(),
|
|
|
|
debug: vitest.fn(),
|
|
|
|
log: vitest.fn(),
|
|
|
|
warn: vitest.fn(),
|
|
|
|
error: vitest.fn(),
|
|
|
|
fatal: vitest.fn(),
|
2024-04-15 16:39:06 -07:00
|
|
|
};
|
|
|
|
};
|