How to pass a value from ‘href’ prop to ‘to’ prop while mocking a module
I am trying to mock a Next/Link component and substitute it with a react router link component.
Everything goes well except that I don’t know how to pass the url from the ‘href’ porp of Next/Link to the ‘to’ prop of React Router Link.