()
| 55 | |
| 56 | describe('installFatalHandlers', () => { |
| 57 | function harness() { |
| 58 | const target = new EventEmitter(); |
| 59 | const writes: string[] = []; |
| 60 | const exits: number[] = []; |
| 61 | installFatalHandlers({ |
| 62 | target, |
| 63 | write: (line) => writes.push(line), |
| 64 | exit: (code) => { |
| 65 | exits.push(code); |
| 66 | }, |
| 67 | }); |
| 68 | return { target, writes, exits }; |
| 69 | } |
| 70 | |
| 71 | it('logs a bounded line and exits non-zero on an uncaught exception', () => { |
| 72 | const { target, writes, exits } = harness(); |
no test coverage detected