MCPcopy Create free account
hub / github.com/adobe/react-spectrum / findRoot

Function findRoot

packages/react-aria-components/test/RadioGroup.test.js:98–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 let renderGroup = (groupProps, radioProps) =>
97 render(<TestRadioGroup {...{groupProps, radioProps}} />);
98 let findRoot = el =>
99 comp === 'RadioField' ? el.closest('label').parentElement : el.closest('label');
100
101 it('should render a radio group with default classes', () => {
102 let {getByRole, getAllByRole} = renderGroup();

Callers 1

RadioGroup.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected