(errors: Array<mixed>)
| 22 | let didWarnNoAwaitAct = false; |
| 23 | |
| 24 | function aggregateErrors(errors: Array<mixed>): mixed { |
| 25 | if (errors.length > 1 && typeof AggregateError === class="st">'function') { |
| 26 | class="cm">// eslint-disable-next-line no-undef |
| 27 | return new AggregateError(errors); |
| 28 | } |
| 29 | return errors[0]; |
| 30 | } |
| 31 | |
| 32 | export function act<T>(callback: () => T | Thenable<T>): Thenable<T> { |
| 33 | if (__DEV__) { |
no outgoing calls
no test coverage detected