MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / findAllByQuery

Function findAllByQuery

src/queries/make-queries.ts:172–194  ·  view source on GitHub ↗
(instance: TestInstance)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 4

waitForFunction · 0.90
appendElementTreeToErrorFunction · 0.85
getAllByQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…