(instance: TestInstance)
| 170 | } |
| 171 | |
| 172 | function findAllByQuery(instance: TestInstance) { |
| 173 | return function findAllFn( |
| 174 | predicate: Predicate, |
| 175 | queryOptions?: Options & WaitForOptions, |
| 176 | { |
| 177 | onTimeout = (error) => appendElementTreeToError(error), |
| 178 | ...waitForOptions |
| 179 | }: WaitForOptions = {}, |
| 180 | ) { |
| 181 | const stackTraceError = new ErrorWithStack('STACK_TRACE_ERROR', findAllFn); |
| 182 | const deprecatedWaitForOptions = extractDeprecatedWaitForOptions(queryOptions); |
| 183 | |
| 184 | return waitFor( |
| 185 | () => getAllByQuery(instance, { printElementTree: false })(predicate, queryOptions), |
| 186 | { |
| 187 | ...deprecatedWaitForOptions, |
| 188 | ...waitForOptions, |
| 189 | stackTraceError, |
| 190 | onTimeout, |
| 191 | }, |
| 192 | ); |
| 193 | }; |
| 194 | } |
| 195 | |
| 196 | function findByQuery(instance: TestInstance) { |
| 197 | return function findFn( |
nothing calls this directly
no test coverage detected
searching dependent graphs…