Can't mock react-router-dom useNavigate hook in jest unit test : navigate is not a function · Issue #588 · testing-library/react-hooks-testing-library · GitHub
![reactjs - Why does jest testing break when adding react-router-dom to a react app with create-react-app - Stack Overflow reactjs - Why does jest testing break when adding react-router-dom to a react app with create-react-app - Stack Overflow](https://i.stack.imgur.com/dlgF2.png)
reactjs - Why does jest testing break when adding react-router-dom to a react app with create-react-app - Stack Overflow
![Testing in React, Part 6: Real-World Testing with React Testing Library, Jest, Enzyme and Cypress | by Bryn Bennett | JavaScript in Plain English Testing in React, Part 6: Real-World Testing with React Testing Library, Jest, Enzyme and Cypress | by Bryn Bennett | JavaScript in Plain English](https://miro.medium.com/max/1400/1*w1SbCruWyxLVTjVEf9pyog.png)