source: trip-planner-front/node_modules/@angular-devkit/schematics/testing/schematic-test-runner.d.ts@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[6a3a178]1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { logging } from '@angular-devkit/core';
9import { Observable } from 'rxjs';
10import { DelegateTree, Rule, SchematicContext, SchematicEngine, TaskConfiguration, Tree } from '../src';
11export declare class UnitTestTree extends DelegateTree {
12 get files(): string[];
13 readContent(path: string): string;
14}
15export 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 runSchematicAsync<SchematicSchemaT>(schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
27 runExternalSchematicAsync<SchematicSchemaT>(collectionName: string, schematicName: string, opts?: SchematicSchemaT, tree?: Tree): Observable<UnitTestTree>;
28 callRule(rule: Rule, tree: Tree, parentContext?: Partial<SchematicContext>): Observable<Tree>;
29}
Note: See TracBrowser for help on using the repository browser.