UNPKG

1.86 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/mockery`
3
4# Summary
5This package contains type definitions for mockery (https://github.com/mfncooper/mockery).
6
7# Details
8Files 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
18interface MockeryEnableArgs {
19 useCleanCache?: boolean | undefined;
20 warnOnReplace?: boolean | undefined;
21 warnOnUnregistered?: boolean | undefined;
22}
23
24export declare function enable(args?: MockeryEnableArgs): void;
25export declare function disable(): void;
26
27export declare function registerMock(name: string, mock: any): void;
28export declare function deregisterMock(name: string): void;
29
30export declare function registerSubstitute(name: string, substitute: string): void;
31export declare function deregisterSubstitute(name: string): void;
32
33export declare function registerAllowable(name: string, unhook?: boolean): void;
34export declare function deregisterAllowable(name: string): void;
35
36export declare function registerAllowables(names: string[]): void;
37export declare function deregisterAllowables(names: string[]): void;
38
39export declare function deregisterAll(): void;
40export declare function resetCache(): void;
41export declare function warnOnUnregistered(value: boolean): void;
42export 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
52These definitions were written by [jt000](https://github.com/jt000).
53
\No newline at end of file