diff --git a/packages/angular_devkit/schematics/testing/schematic-test-runner.ts b/packages/angular_devkit/schematics/testing/schematic-test-runner.ts index 1c0c06ac1ce8..9b89f6f46057 100644 --- a/packages/angular_devkit/schematics/testing/schematic-test-runner.ts +++ b/packages/angular_devkit/schematics/testing/schematic-test-runner.ts @@ -85,6 +85,12 @@ export class SchematicTestRunner { .pipe(map(tree => new UnitTestTree(tree))); } + /** + * @deprecated Since v8.0.0 - Use {@link SchematicTestRunner.runSchematicAsync} instead. + * All schematics can potentially be async. + * This synchronous variant will fail if the schematic, any of its rules, or any schematics + * it calls are async. + */ runSchematic( schematicName: string, opts?: SchematicSchemaT, @@ -126,6 +132,12 @@ export class SchematicTestRunner { .pipe(map(tree => new UnitTestTree(tree))); } + /** + * @deprecated Since v8.0.0 - Use {@link SchematicTestRunner.runExternalSchematicAsync} instead. + * All schematics can potentially be async. + * This synchronous variant will fail if the schematic, any of its rules, or any schematics + * it calls are async. + */ runExternalSchematic( collectionName: string, schematicName: string,