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