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

Function getInstanceByHintText

src/queries/hint-text.ts:19–26  ·  view source on GitHub ↗
(
  instance: TestInstance,
  text: TextMatch,
  options: TextMatchOptions = {},
)

Source from the content-addressed store, hash-verified

17type ByHintTextOptions = CommonQueryOptions & TextMatchOptions;
18
19const getInstanceByHintText = (
20 instance: TestInstance,
21 text: TextMatch,
22 options: TextMatchOptions = {},
23) => {
24 const { exact, normalizer } = options;
25 return matches(text, instance.props.accessibilityHint, normalizer, exact);
26};
27
28const queryAllByHintText = (
29 instance: TestInstance,

Callers 1

queryAllByHintTextFunction · 0.85

Calls 1

matchesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…