(id = 'conn_x')
| 86 | } |
| 87 | |
| 88 | function fakeConn(id = 'conn_x'): { id: string; sent: unknown[]; send(m: unknown): void } & WsConnection { |
| 89 | const sent: unknown[] = []; |
| 90 | return { |
| 91 | id, |
| 92 | sent, |
| 93 | send(m: unknown): void { |
| 94 | sent.push(m); |
| 95 | }, |
| 96 | } as unknown as { id: string; sent: unknown[]; send(m: unknown): void } & WsConnection; |
| 97 | } |
| 98 | |
| 99 | function captureThrown(fn: () => void): unknown { |
| 100 | try { |
no outgoing calls
no test coverage detected