← All recipes
Moderne licensed

Find zone.js-dependent test helper usage

Recipe IDorg.openrewrite.angular.search.find-fake-async-usageArtifact@openrewrite/recipes-angular

Finds fakeAsync(), tick(), and waitForAsync() calls from @angular/core/testing. These zone.js-dependent test helpers are incompatible with Vitest, the default test runner in Angular 21. Migrate to native async/await patterns 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-fake-async-usage

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

mod config recipes npm install @openrewrite/recipes-angular