()
| 39 | } |
| 40 | |
| 41 | function capturingLogger(): { logger: Logger; lines: string[] } { |
| 42 | const lines: string[] = []; |
| 43 | const dest = new Writable({ |
| 44 | write(chunk, _enc, cb) { |
| 45 | lines.push(String(chunk)); |
| 46 | cb(); |
| 47 | }, |
| 48 | }); |
| 49 | return { logger: pino({ level: 'info' }, dest), lines }; |
| 50 | } |
| 51 | |
| 52 | beforeEach(() => { |
| 53 | prevPassword = process.env['KIMI_CODE_PASSWORD']; |
no outgoing calls
no test coverage detected