score:3

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.

score:0

It is also possible to set the params directly without router

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

Related Query

More Query from same tag