@types/mockery
TypeScript icon, indicating that this package has built-in type declarations

1.4.33 • Public • Published

Installation

npm install --save @types/mockery

Summary

This package contains type definitions for mockery (https://github.com/mfncooper/mockery).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mockery.

index.d.ts

interface MockeryEnableArgs {
    useCleanCache?: boolean | undefined;
    warnOnReplace?: boolean | undefined;
    warnOnUnregistered?: boolean | undefined;
}

export declare function enable(args?: MockeryEnableArgs): void;
export declare function disable(): void;

export declare function registerMock(name: string, mock: any): void;
export declare function deregisterMock(name: string): void;

export declare function registerSubstitute(name: string, substitute: string): void;
export declare function deregisterSubstitute(name: string): void;

export declare function registerAllowable(name: string, unhook?: boolean): void;
export declare function deregisterAllowable(name: string): void;

export declare function registerAllowables(names: string[]): void;
export declare function deregisterAllowables(names: string[]): void;

export declare function deregisterAll(): void;
export declare function resetCache(): void;
export declare function warnOnUnregistered(value: boolean): void;
export declare function warnOnReplace(value: boolean): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by jt000.

Dependents (5)

Package Sidebar

Install

npm i @types/mockery

Weekly Downloads

38,434

Version

1.4.33

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • types