UNPKG

283 BTypeScriptView Raw
1type StubFunction = (...params: any[]) => any;
2type Stub = object | StubFunction;
3
4interface Mock {
5 (path: string, mockExport: string | Stub): void;
6 stop(path: string): void;
7 stopAll(): void;
8 reRequire(path: string): any;
9}
10
11declare const mock: Mock;
12
13export = mock;