5ce71e0fbc
Adds a migration that finds all imports and calls to the deprecated `async` function from `@angular/core/testing` and replaces them with `waitForAsync`. These changes also move a bit of code out of the `Renderer2` migration so that it can be reused. PR Close #39212 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
README.md | ||
index.ts | ||
util.ts |
README.md
async -> waitForAsync migration
Automatically migrates from async
to waitForAsync
by changing function calls and renaming imports.
Before
import { async } from '@angular/core/testing';
it('should work', async(() => {
// async testing logic
}));
After
import { waitForAsync } from '@angular/core/testing';
it('should work', waitForAsync(() => {
// async testing logic
}));