You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to use redux-first-history but can't figure out how I might set up my tests with HistoryRouter so that I have specific route active.
I was using RouterProvider of react-router when creating a store which allowed to specify initialEntries and initialIndex.
test-utils.js:
and then in my test:
If I would now switch to using HistoryRouter could the same behaviour be achieved. Would be grateful for any idea :)
Beta Was this translation helpful? Give feedback.
All reactions