How to mock useLocation() using jest in React ?

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


Discover more from Learners Store

Subscribe to get the latest posts sent to your email.

Leave a comment