Add istanbul-lib-instrument for Karma code coverage
Recipe ID
org.openrewrite.angular.migration.add-istanbul-instrumenterArtifact@openrewrite/recipes-angularAdds istanbul-lib-instrument to devDependencies of projects that still depend on Karma. Angular 22 stopped bundling the instrumenter, so Karma code coverage fails without it. Run an install afterwards to refresh the lock file.
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.migration.add-istanbul-instrumenterIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular