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