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