ngx-testing-tools
Version:
Makes Angular testing easier
22 lines (21 loc) • 980 B
TypeScript
import { Type } from '@angular/core';
import { ComponentTestBed, ComponentTestBedOptions } from './models';
/**
* Creates a new `ComponentTestBed` to configure the custom test bed and wrap the assertion test.
* @param rootComponent - The described Component.
* @param options
*/
export declare function componentTestBed<T>(rootComponent: Type<T>, options?: ComponentTestBedOptions): ComponentTestBed<T>;
/**
* Only invokes the "should create" test.
*
* To be used when there are no noticeable or relevant tests to be performed on this component.
*
* The usage of this function and `componentTestBed` function must be mutually exclusive.
*
* @param rootComponent - The described Component.
* @param options
*/
export declare function itShouldCreateComponent<T>(rootComponent: Type<T>, options?: itShouldCreateComponentOptions): void;
type itShouldCreateComponentOptions = Pick<ComponentTestBedOptions, 'imports' | 'providers' | 'declarations' | 'schemas'>;
export {};