mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
* refactor: fix `import` and `export` paths to work with classic resolution `ts-api-guardian` only support classic module resolution which means that we need to specify `index` so that the resolution works. * build: add `npm_package` to packages * build: add ts-api-guardian to repo * test: add api golden files * refactor: use proper namespace instead of alias export * refactor: use proper namspace einstead of alias export * build: add `_golden_api` files At the moment ts api guardian doesn't support aliased symbols as namespaces, this is a workaround to still have namespaced symbols in the final golden file. * build: update angular archive for workspace * test: fix reference to `TestHost` to use namespace * refactor: create `fs` namespace instead of aliased export * test: update api golden file for `@angular-devkit/core/node`
17 lines
1005 B
TypeScript
17 lines
1005 B
TypeScript
export declare class SchematicTestRunner {
|
|
readonly engine: SchematicEngine<{}, {}>;
|
|
readonly logger: logging.Logger;
|
|
readonly tasks: TaskConfiguration[];
|
|
constructor(_collectionName: string, collectionPath: string);
|
|
callRule(rule: Rule, tree: Tree, parentContext?: Partial<SchematicContext>): Observable<Tree>;
|
|
runExternalSchematic<SchematicSchemaT>(collectionName: string, schematicName: string, opts?: SchematicSchemaT, tree?: Tree): UnitTestTree;
|
|
runExternalSchematicAsync<SchematicSchemaT>(collectionName: string, schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
|
|
runSchematic<SchematicSchemaT>(schematicName: string, opts?: SchematicSchemaT, tree?: Tree): UnitTestTree;
|
|
runSchematicAsync<SchematicSchemaT>(schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
|
|
}
|
|
|
|
export declare class UnitTestTree extends DelegateTree {
|
|
readonly files: string[];
|
|
readContent(path: string): string;
|
|
}
|