Skip to content

Commit

Permalink
[Reporting] Suppress debug logs in the mock logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Oct 21, 2021
1 parent cb0778d commit 50b7ab2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function createMockLevelLogger() {
const logger = new LevelLogger(loggingSystemMock.create()) as jest.Mocked<LevelLogger>;

logger.clone.mockImplementation(createMockLevelLogger);
logger.debug.mockImplementation(consoleLogger('debug'));
// logger.debug.mockImplementation(consoleLogger('debug')); // uncomment this to see debug logs in jest tests
logger.info.mockImplementation(consoleLogger('info'));
logger.warn.mockImplementation(consoleLogger('warn'));
logger.warning = jest.fn().mockImplementation(consoleLogger('warn'));
Expand Down

0 comments on commit 50b7ab2

Please sign in to comment.