UNPKG

ts-mockery

Version:

Yet another typescript mocking library.

6 lines (5 loc) 227 B
export interface SpyAdapter { getSpy(property: string): any; spyAndCallFake<T, K extends keyof T>(object: T, key: K, stub: T[K] & Function): void; spyAndCallThrough<T, K extends keyof T>(object: T, key: K): void; }