MCPcopy
hub / github.com/facebook/react / Example

Function Example

packages/react-dom/src/__tests__/ReactDOMTestSelectors-test.js:70–76  ·  packages/react-dom/src/__tests__/ReactDOMTestSelectors-test.js::Example
()

Source from the content-addressed store, hash-verified

68 class="cm">// @gate www || experimental
69 it(class="st">'should support searching from the document root', async () => {
70 function Example() {
71 return (
72 <div>
73 <div data-testname=class="st">"match" id=class="st">"match" />
74 </div>
75 );
76 }
77
78 const root = createRoot(container);
79 await act(() => {

Callers

nothing calls this directly

Calls 10

findBoundingRectsFunction · 0.85
createComponentSelectorFunction · 0.85
observeVisibleRectsFunction · 0.85
toHaveLengthMethod · 0.80
toContainEqualMethod · 0.80
actFunction · 0.70
renderMethod · 0.65
toBeNullMethod · 0.65
toBeMethod · 0.65
setBoundingClientRectFunction · 0.50

Tested by

no test coverage detected