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

Function matchDisplayValue

src/queries/display-value.ts:21–29  ·  view source on GitHub ↗
(
  instance: TestInstance,
  expectedValue: TextMatch,
  options: TextMatchOptions = {},
)

Source from the content-addressed store, hash-verified

19type ByDisplayValueOptions = CommonQueryOptions & TextMatchOptions;
20
21const matchDisplayValue = (
22 instance: TestInstance,
23 expectedValue: TextMatch,
24 options: TextMatchOptions = {},
25) => {
26 const { exact, normalizer } = options;
27 const instanceValue = getTextInputValue(instance);
28 return matches(expectedValue, instanceValue, normalizer, exact);
29};
30
31const queryAllByDisplayValue = (
32 instance: TestInstance,

Callers 1

queryAllByDisplayValueFunction · 0.85

Calls 2

getTextInputValueFunction · 0.90
matchesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…