1.4.33 • Published 6 months ago

@types/mockery v1.4.33

Weekly downloads
9,501
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for mockery 1.4.0
// Project: https://github.com/mfncooper/mockery
// Definitions by: jt000 <https://github.com/jt000>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped



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: Wed, 07 Jul 2021 00:01:43 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by jt000.

1.4.31

8 months ago

1.4.33

6 months ago

1.4.32

7 months ago

1.4.30

3 years ago

1.4.29

8 years ago

1.4.28

8 years ago

1.4.27-alpha

8 years ago

1.4.26-alpha

8 years ago

1.4.25-alpha

8 years ago

1.4.24-alpha

8 years ago

1.4.23-alpha

8 years ago

1.4.22-alpha

8 years ago

1.4.21-alpha

8 years ago

1.4.16-alpha

8 years ago

1.4.15-alpha

8 years ago