(level: LogLevel)
| 40 | const { customImplementations = {} } = options |
| 41 | |
| 42 | const createLogMethod = (level: LogLevel): MockLogMethod => { |
| 43 | const customImpl = customImplementations[level] |
| 44 | if (customImpl) { |
| 45 | return mock(customImpl) |
| 46 | } |
| 47 | return mock(() => {}) |
| 48 | } |
| 49 | |
| 50 | const mockLogger: MockLogger = { |
| 51 | trace: createLogMethod('trace'), |