(callback, options)
| 181 | } |
| 182 | |
| 183 | function waitForWrapper(callback, options) { |
| 184 | // create the error here so its stack trace is as close to the |
| 185 | // calling code as possible |
| 186 | const stackTraceError = new Error('STACK_TRACE_MESSAGE') |
| 187 | return getConfig().asyncWrapper(() => |
| 188 | waitFor(callback, {stackTraceError, ...options}), |
| 189 | ) |
| 190 | } |
| 191 | |
| 192 | export {waitForWrapper as waitFor} |
| 193 |
nothing calls this directly
no test coverage detected