1 | # Installation
|
2 | > `npm install --save @types/mockery`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for mockery (https://github.com/mfncooper/mockery).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mockery.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mockery/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for mockery 1.4.0
|
12 | // Project: https://github.com/mfncooper/mockery
|
13 | // Definitions by: jt000 <https://github.com/jt000>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 |
|
16 |
|
17 |
|
18 | interface MockeryEnableArgs {
|
19 | useCleanCache?: boolean | undefined;
|
20 | warnOnReplace?: boolean | undefined;
|
21 | warnOnUnregistered?: boolean | undefined;
|
22 | }
|
23 |
|
24 | export declare function enable(args?: MockeryEnableArgs): void;
|
25 | export declare function disable(): void;
|
26 |
|
27 | export declare function registerMock(name: string, mock: any): void;
|
28 | export declare function deregisterMock(name: string): void;
|
29 |
|
30 | export declare function registerSubstitute(name: string, substitute: string): void;
|
31 | export declare function deregisterSubstitute(name: string): void;
|
32 |
|
33 | export declare function registerAllowable(name: string, unhook?: boolean): void;
|
34 | export declare function deregisterAllowable(name: string): void;
|
35 |
|
36 | export declare function registerAllowables(names: string[]): void;
|
37 | export declare function deregisterAllowables(names: string[]): void;
|
38 |
|
39 | export declare function deregisterAll(): void;
|
40 | export declare function resetCache(): void;
|
41 | export declare function warnOnUnregistered(value: boolean): void;
|
42 | export declare function warnOnReplace(value: boolean): void;
|
43 |
|
44 | ````
|
45 |
|
46 | ### Additional Details
|
47 | * Last updated: Wed, 07 Jul 2021 00:01:43 GMT
|
48 | * Dependencies: none
|
49 | * Global values: none
|
50 |
|
51 | # Credits
|
52 | These definitions were written by [jt000](https://github.com/jt000).
|
53 |
|
\ | No newline at end of file |