@hirez_io/auto-spies-core
Version:
Create automatic spies from classes in tests, also for promises and observables, used as a common code for jasmine-auto-spies and jest-auto-spies
5 lines (4 loc) • 434 B
TypeScript
import { ReturnValueContainer, CalledWithObject, AddObservableSpyMethods } from '..';
export declare function addObservableHelpersToFunctionSpy(spyFunction: any, valueContainer: ReturnValueContainer): void;
export declare function addObservableHelpersToCalledWithObject(calledWithObject: CalledWithObject, calledWithArgs: any[]): CalledWithObject;
export declare function createObservablePropSpy<T>(): T & AddObservableSpyMethods<T>;