UNPKG

@ngneat/spectator

Version:

A powerful tool to simplify your Angular tests

12 lines (11 loc) 550 B
import { Type } from '@angular/core'; import { Spectator as BaseSpectator, SpectatorOptions, SpectatorOverrides, Token } from '@ngneat/spectator'; import { SpyObject } from './mock'; /** * @publicApi */ export type SpectatorFactory<C> = (options?: SpectatorOverrides<C>) => Spectator<C>; export declare function createComponentFactory<C>(typeOrOptions: SpectatorOptions<C> | Type<C>): SpectatorFactory<C>; export declare class Spectator<C> extends BaseSpectator<C> { inject<T>(token: Token<T>, fromComponentInjector?: boolean): SpyObject<T>; }