(time: number)
| 119 | } |
| 120 | |
| 121 | timeout(time: number): Promise<void> { |
| 122 | return new Promise<void>(res => { |
| 123 | const id = setTimeout(res, time); |
| 124 | this.#abortController.signal.addEventListener('abort', () => { |
| 125 | res(); |
| 126 | clearTimeout(id); |
| 127 | }); |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | async waitForEventsAfterAction( |
| 132 | action: () => Promise<unknown>, |
no outgoing calls
no test coverage detected