When testing a React component, how do I ensure my component renders via a url with params?
I have a component that can be hit through two flows. One route is user/Plan
and the other is user/:userId/Plan
. I have different parts of the component that render based on a value I get from calling useParams
to see which flow we are going through. Is there a way I can render the component and ensure it uses the user/:userId/Plan
flow?