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