(time: number)
| 100 | } |
| 101 | |
| 102 | timeout(time: number): Promise<void> { |
| 103 | return new Promise<void>(res => { |
| 104 | const id = setTimeout(res, time); |
| 105 | this.#abortController.signal.addEventListener('abort', () => { |
| 106 | res(); |
| 107 | clearTimeout(id); |
| 108 | }); |
| 109 | }); |
| 110 | } |
| 111 | |
| 112 | async waitForEventsAfterAction( |
| 113 | action: () => Promise<unknown>, |
no outgoing calls
no test coverage detected