How to test components using new react router hooks? : <p>Until now, in unit tests, react router match params were retrieved as props of component.
So testing a component considering some specific match, with specific url parameters, was easy : we just had to precise router match's props as we want when rendering the component in test (I'm using enzyme library for this purpose).</p>

<p>I really enjoy new hooks for retrieving routing stuff, but I didn't find examples about how to simulate a react router match in unit testing, with new react router hooks ?</p>
