React testing: `fireEvent.focus(input)` does not change state
问题 I have create a number input component, but when I try to test it everything works great, except from the onMouserEnter() , onMouseOver() , onMouserLeave() and onFocus methods. On the component and on browser, the state changes (as I use the useState hook to know whether onHover), but on the tests no. Basically the state changes, but the children components that are meant to be displayed when onHover, do not display. Note: When I use a second conditional to display something, the test is able