Find setupTestingRouter usage
Recipe ID
org.openrewrite.angular.search.find-setup-testing-router-usageArtifact@openrewrite/recipes-angularFinds usages of the removed setupTestingRouter function from @angular/router/testing. This function was removed in Angular 17. Use RouterModule.forRoot or provideRouter to set up the Router for tests instead.
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.angular.search.find-setup-testing-router-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular