(operation: () => Promise<unknown> | unknown)
| 3811 | } |
| 3812 | |
| 3813 | async capture(operation: () => Promise<unknown> | unknown): Promise<void> { |
| 3814 | try { |
| 3815 | await operation(); |
| 3816 | } catch (error) { |
| 3817 | this.add(error); |
| 3818 | } |
| 3819 | } |
| 3820 | |
| 3821 | throwIfAny(message: string): void { |
| 3822 | if (this.failures.length === 1) throw this.failures[0]; |
no test coverage detected