Migrate Create React App tests to Vitest

Proprietary

Installs Vitest 4, jsdom 26 and Vite 7 and migrates supported Create React App tests with a separate Vitest config. Packages with conflicting test configuration or unsupported Jest mocking are left unchanged. Requires Node 20.19 or later.

org.openrewrite.react.cra-to-vite.migrate-tests-to-vitest
mod run . --recipe=org.openrewrite.react.cra-to-vite.migrate-tests-to-vitest

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.