Replace react-test-renderer/shallow import
Recipe ID
org.openrewrite.react.19.replace-react-shallow-rendererArtifact@openrewrite/recipes-reactChanges import of shallow renderer from react-test-renderer/shallow to the standalone react-shallow-renderer package, as it was removed from React 19.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.react.19.replace-react-shallow-rendererIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react