UNPKG

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