Official documentation: https://reactrouter.com/upgrading/router-provider
-
Vite config. If the vite config contains a
rootproperty it needs to be removed. If you are running vitest coverage reports you may want to move it totest.rootor it will show coverage for the entire project. Any paths relative to root need to be adjusted as well, e.g. if you havepublicDirset to../publicit should be set to justpublic(or removed as that is the default). -
Vitest. You don't want the
reactRouterplugin running for tests, so setup as