(fn: () => void)
| 768 | }) |
| 769 | |
| 770 | function capture(fn: () => void): nodeAssert.AssertionError | null { |
| 771 | try { |
| 772 | fn() |
| 773 | return null |
| 774 | } catch (e) { |
| 775 | return e as nodeAssert.AssertionError |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | async function captureAsync(fn: () => Promise<void>): Promise<nodeAssert.AssertionError | null> { |
| 780 | try { |
no test coverage detected
searching dependent graphs…