MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / harness

Function harness

__tests__/fatal-handler.test.ts:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56describe('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();

Callers 1

Calls 1

installFatalHandlersFunction · 0.90

Tested by

no test coverage detected