1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { logging } from '@angular-devkit/core';
|
9 | import { Observable } from 'rxjs';
|
10 | import { DelegateTree, Rule, SchematicContext, SchematicEngine, TaskConfiguration, Tree } from '../src';
|
11 | export declare class UnitTestTree extends DelegateTree {
|
12 | get files(): string[];
|
13 | readContent(path: string): string;
|
14 | }
|
15 | export declare class SchematicTestRunner {
|
16 | private _collectionName;
|
17 | private _engineHost;
|
18 | private _engine;
|
19 | private _collection;
|
20 | private _logger;
|
21 | constructor(_collectionName: string, collectionPath: string);
|
22 | get engine(): SchematicEngine<{}, {}>;
|
23 | get logger(): logging.Logger;
|
24 | get tasks(): TaskConfiguration[];
|
25 | registerCollection(collectionName: string, collectionPath: string): void;
|
26 | runSchematic<SchematicSchemaT extends object>(schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Promise<UnitTestTree>;
|
27 | |
28 |
|
29 |
|
30 | runSchematicAsync<SchematicSchemaT extends object>(schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
|
31 | runExternalSchematic<SchematicSchemaT extends object>(collectionName: string, schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Promise<UnitTestTree>;
|
32 | |
33 |
|
34 |
|
35 | runExternalSchematicAsync<SchematicSchemaT extends object>(collectionName: string, schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
|
36 | callRule(rule: Rule, tree: Tree, parentContext?: Partial<SchematicContext>): Observable<Tree>;
|
37 | }
|