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

Function doClick

packages/react-art/src/__tests__/ReactART-test.js:372–380  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

370 }
371
372 function doClick(instance) {
373 const path = container.firstChild.querySelector('path');
374
375 path.dispatchEvent(
376 new MouseEvent('click', {
377 bubbles: true,
378 }),
379 );
380 }
381
382 const onClick1 = jest.fn();
383 let instance = await render(onClick1);

Callers 1

ReactART-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected