ngx-testing-tools
Version:
Makes Angular testing easier
29 lines (28 loc) • 1.55 kB
TypeScript
import { SchemaMetadata, Type } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
import { BaseTools } from '../../tools/base/models/base-tools.model';
import { InjectionStore } from '../../tools/store/models/injected-store.model';
import { BaseTestBedFactory } from '../base/base-test-bed-factory';
import { Declaration } from '../models/metadata-type.models';
import { RendererTestBedOptions } from './models/renderer-test-bed-options.model';
export declare abstract class RendererTestBedFactory<DescribedType, Store extends InjectionStore = InjectionStore, Tools extends BaseTools = BaseTools, HostType = DescribedType> extends BaseTestBedFactory<DescribedType, Store, Tools> {
private host;
protected constructor(described: Type<DescribedType>, host: Type<HostType>, options: RendererTestBedOptions);
protected readonly startDetectChanges: boolean;
protected readonly noTemplate: boolean;
protected declarations: Set<Declaration>;
protected schemas: Set<SchemaMetadata>;
protected _fixture: ComponentFixture<HostType>;
protected get fixture(): ComponentFixture<HostType>;
protected createHostFixture(): void;
/**
* Declares one non-standalone component, directive or pipe into the custom test bed.
*/
declare(declaration: Declaration): this;
/**
* Declares many non-standalone components, directives and pipes into the custom test bed.
*/
declare(declarations: Declaration[]): this;
compile(): Promise<void>;
_shouldCreate(): void;
}