MCPcopy Index your code
hub / github.com/react/react / createTestNameSelector

Function createTestNameSelector

packages/react-reconciler/src/ReactTestSelectors.js:113–118  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

111}
112
113export function createTestNameSelector(id: string): TestNameSelector {
114 return {
115 $$typeof: TEST_NAME_TYPE,
116 value: id,
117 };
118}
119
120function findFiberRootForHostRoot(hostRoot: Instance): Fiber {
121 const maybeFiber = getInstanceFromNode((hostRoot: any));

Callers 10

addItemFunction · 0.85
clickButtonFunction · 0.85
getElementCountFunction · 0.85
selectElementFunction · 0.85
components.test.jsFile · 0.85
focusComponentSearchFunction · 0.85
getSnapshotSelectorTextFunction · 0.85
profiler.test.jsFile · 0.85

Calls

no outgoing calls

Tested by 7

addItemFunction · 0.68
clickButtonFunction · 0.68
getElementCountFunction · 0.68
selectElementFunction · 0.68
focusComponentSearchFunction · 0.68
getSnapshotSelectorTextFunction · 0.68