Accepted answer

Slawa's answer is what I ended up doing. It is not useful to test the functionality of React Router and Redux. Exporting the plain React component made the test much simpler.


It is also possible to set the params directly without router

<Provider store={store}>
<WrappedTestComponent match={{
  params: {
    param1: param1val,
    param2: param2val
}} />

Related Query

More Query from same tag