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

Function queryAllByText

src/queries/text.ts:20–26  ·  view source on GitHub ↗
(instance: TestInstance)

Source from the content-addressed store, hash-verified

18type ByTextOptions = CommonQueryOptions & TextMatchOptions;
19
20const queryAllByText = (instance: TestInstance): QueryAllByQuery<TextMatch, ByTextOptions> =>
21 function queryAllByTextFn(text, options = {}) {
22 return findAll(instance, (item) => isHostText(item) && matchTextContent(item, text, options), {
23 ...options,
24 matchDeepestOnly: true,
25 });
26 };
27
28const getMultipleError = (text: TextMatch) => `Found multiple elements with text: ${String(text)}`;
29

Callers

nothing calls this directly

Calls 3

findAllFunction · 0.90
isHostTextFunction · 0.90
matchTextContentFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…