1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | interface MockeryEnableArgs {
|
9 | useCleanCache?: boolean | undefined;
|
10 | warnOnReplace?: boolean | undefined;
|
11 | warnOnUnregistered?: boolean | undefined;
|
12 | }
|
13 |
|
14 | export declare function enable(args?: MockeryEnableArgs): void;
|
15 | export declare function disable(): void;
|
16 |
|
17 | export declare function registerMock(name: string, mock: any): void;
|
18 | export declare function deregisterMock(name: string): void;
|
19 |
|
20 | export declare function registerSubstitute(name: string, substitute: string): void;
|
21 | export declare function deregisterSubstitute(name: string): void;
|
22 |
|
23 | export declare function registerAllowable(name: string, unhook?: boolean): void;
|
24 | export declare function deregisterAllowable(name: string): void;
|
25 |
|
26 | export declare function registerAllowables(names: string[]): void;
|
27 | export declare function deregisterAllowables(names: string[]): void;
|
28 |
|
29 | export declare function deregisterAll(): void;
|
30 | export declare function resetCache(): void;
|
31 | export declare function warnOnUnregistered(value: boolean): void;
|
32 | export declare function warnOnReplace(value: boolean): void;
|