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

Function queryAllByTestId

src/queries/test-id.ts:24–27  ·  view source on GitHub ↗
(instance: TestInstance)

Source from the content-addressed store, hash-verified

22};
23
24const queryAllByTestId = (instance: TestInstance): QueryAllByQuery<TextMatch, ByTestIdOptions> =>
25 function queryAllByTestIdFn(testId, queryOptions) {
26 return findAll(instance, (item) => matchTestId(item, testId, queryOptions), queryOptions);
27 };
28
29const getMultipleError = (testId: TextMatch) =>
30 `Found multiple elements with testID: ${String(testId)}`;

Callers

nothing calls this directly

Calls 2

findAllFunction · 0.90
matchTestIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…