(cb: () => Promise<any>)
| 34 | } |
| 35 | |
| 36 | async function catchError(cb: () => Promise<any>): Promise<Error> { |
| 37 | try { |
| 38 | await cb() |
| 39 | } catch (e) { |
| 40 | if (e instanceof Error) return e |
| 41 | } |
| 42 | throw new Error('Error was not thrown') |
| 43 | } |
| 44 | |
| 45 | let beforeFix = new Processor([ |
| 46 | (root: Root) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…