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