| 841 | function Item(props) { |
| 842 | let focusManager = useFocusManager(); |
| 843 | let onClick = e => { |
| 844 | focusManager.focusNext(); |
| 845 | act(() => { |
| 846 | // remove fails to fire blur event in jest-dom |
| 847 | e.target.blur(); |
| 848 | e.target.remove(); |
| 849 | jest.runAllTimers(); |
| 850 | }); |
| 851 | }; |
| 852 | return <button tabIndex={-1} {...props} onClick={onClick} />; |
| 853 | } |
| 854 | let focusable = getByTestId('focusable'); |
nothing calls this directly
no test coverage detected