How to mock useLocation() using jest in React ?

We can mock the useLocation() by using the following code

Leave a comment