(logFn: (...args: unknown[]) => void, excludeMessage: string)
| 1 | import { format } from 'util'; |
| 2 | |
| 3 | export function excludeConsoleMessage(logFn: (...args: unknown[]) => void, excludeMessage: string) { |
| 4 | return (...args: unknown[]) => { |
| 5 | const message = format(...args); |
| 6 | if (message.includes(excludeMessage)) { |
| 7 | return; |
| 8 | } |
| 9 | |
| 10 | logFn(...args); |
| 11 | }; |
| 12 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…