shallow-render
Version:
Shallow rendering test utility for Angular
6 lines (5 loc) • 363 B
TypeScript
import { PipeTransform, Type } from '@angular/core';
import { AngularModule } from '../models/angular-module';
import { TestSetup } from '../models/test-setup';
export type NgMockable = AngularModule | Type<any> | Type<PipeTransform> | any[];
export declare function ngMock<TThing extends NgMockable | NgMockable[]>(thing: TThing, setup: TestSetup<any>): TThing;