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

Function matchTestId

src/queries/test-id.ts:19–22  ·  view source on GitHub ↗
(instance: TestInstance, testId: TextMatch, options: TextMatchOptions = {})

Source from the content-addressed store, hash-verified

17type ByTestIdOptions = CommonQueryOptions & TextMatchOptions;
18
19const matchTestId = (instance: TestInstance, testId: TextMatch, options: TextMatchOptions = {}) => {
20 const { exact, normalizer } = options;
21 return matches(testId, instance.props.testID, normalizer, exact);
22};
23
24const queryAllByTestId = (instance: TestInstance): QueryAllByQuery<TextMatch, ByTestIdOptions> =>
25 function queryAllByTestIdFn(testId, queryOptions) {

Callers 1

queryAllByTestIdFunction · 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…