Reactjs – Mock custom hook in react 18 with jest 29
I'm currently trying to test my component that uses a custom hook, however I can't seem to manually mock the custom hook used within the component. My code is current as follow; src/components/movies/MovieDetail.tsx import { useParams } from 'react-router-dom'; import…