UNPKG

@types/mock-require

Version:
14 lines (10 loc) 283 B
type StubFunction = (...params: any[]) => any; type Stub = object | StubFunction; interface Mock { (path: string, mockExport: string | Stub): void; stop(path: string): void; stopAll(): void; reRequire(path: string): any; } declare const mock: Mock; export = mock;