You can test a component that uses useParams by mocking the useParams hook to return the desired parameters.
Question 13 of 20 in useParams Quiz