()
| 11 | * suppress the output. |
| 12 | */ |
| 13 | export function mockLogger() { |
| 14 | jest.spyOn(logger, "debug").mockImplementation() |
| 15 | jest.spyOn(logger, "error").mockImplementation() |
| 16 | jest.spyOn(logger, "info").mockImplementation() |
| 17 | jest.spyOn(logger, "trace").mockImplementation() |
| 18 | jest.spyOn(logger, "warn").mockImplementation() |
| 19 | |
| 20 | jest.spyOn(console, "log").mockImplementation() |
| 21 | jest.spyOn(console, "debug").mockImplementation() |
| 22 | jest.spyOn(console, "error").mockImplementation() |
| 23 | jest.spyOn(console, "info").mockImplementation() |
| 24 | jest.spyOn(console, "trace").mockImplementation() |
| 25 | jest.spyOn(console, "warn").mockImplementation() |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Clean up directories left by a test. It is recommended to do this when a test |
no outgoing calls
no test coverage detected