UNPKG

piumino

Version:

Piumino, meaning duvet in Italian, is like a duvet over the bed called Angular TestBed. It provides test helpers to test trivial things like inputs and outputs with a single line.

25 lines (24 loc) 1.25 kB
import { DebugElement } from "@angular/core"; export declare const NOTHING: unique symbol; export declare type Selector = string; export declare type TestDefinition = [string, () => void]; export declare type GenericObject = Record<string, any>; export declare type GenericFunction = (...args: unknown[]) => unknown; export declare type MatcherFunction = (payload?: unknown) => [boolean, unknown?, unknown?]; export declare type MatcherChainStarters = "input" | "output"; export declare type MatcherChainStarter<T extends GenericObject> = Omit<T, "build" | "execute">; export declare type MatcherChain<T extends GenericObject> = Omit<T, "build" | "execute" | "not" | MatcherChainStarters>; export declare type MatcherChainWithFinisher<T extends GenericObject> = Omit<T, "not" | MatcherChainStarters>; export declare type MatcherChainFinisher<T extends GenericObject> = Pick<T, "build" | "execute">; export interface ComponentFixtureLike { componentInstance: GenericObject; debugElement: DebugElement; point?: { componentInstance: GenericObject; }; detectChanges(checkNoChanges?: boolean): void; } export declare class PiuminoError extends Error { name: string; constructor(description: string, stack?: string); }