← All recipes
Moderne licensed

Replace async with waitForAsync

Recipe IDorg.openrewrite.angular.migration.replace-async-with-wait-for-asyncArtifact@openrewrite/recipes-angular

Replaces the removed async test helper from @angular/core/testing with waitForAsync. The async function was deprecated in Angular 11 and removed in Angular 18.

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.replace-async-with-wait-for-async

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular