How to replace createMemoryHistory
using the react-router-dom-v5-compat
package?
#9970
Unanswered
meseck
asked this question in
v5 to v6 Migration
Replies: 1 comment
-
Hello everyone, Any news on this? All tests of the (big) repo I'm working on are based on Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone! 👋
I'm trying to write some tests for a route that already uses v6 with
react-router-dom-v5-compat
. In the codebase I am currently working in, there are tests that usecreateMemoryHistory
, but this function doesn't seem to be used in v6 anymore. This stackoverflow answer recommends usingcreateMemoryRouter
, but that is not exported inreact-router-dom-v5-compat
. Is this intentional? If so, is there a better way? Thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions