(...args: [any, ...any])
| 4 | // Jest seems to hijack console.log in a way that makes the output difficult to |
| 5 | // read. So we'll write directly to process.stderr instead. |
| 6 | const write = (...args: [any, ...any]) => { |
| 7 | if (args.length > 0) { |
| 8 | process.stderr.write(util.format(...args) + "\n") |
| 9 | } |
| 10 | } |
| 11 | wtfnode.setLogger("info", write) |
| 12 | wtfnode.setLogger("warn", write) |
| 13 | wtfnode.setLogger("error", write) |