# @types/mockery

> TypeScript definitions for mockery

Latest version **1.4.33** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mockery
pnpm add @types/mockery
yarn add @types/mockery
bun add @types/mockery
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.33 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/mockery
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mockery
- npm.io page: https://npm.io/package/@types/mockery

## Recent versions

- 1.4.33 (latest) — 2023-11-07
- 1.4.30 (ts3.6) — 2021-07-07
- 1.4.29 (ts2.0) — 2016-09-19
- 1.4.32 — 2023-10-18
- 1.4.31 — 2023-09-27
- 1.4.28 — 2016-07-14
- 1.4.27-alpha — 2016-07-08
- 1.4.26-alpha — 2016-07-04
- 1.4.25-alpha — 2016-07-02
- 1.4.24-alpha — 2016-07-01
- 1.4.23-alpha — 2016-07-01
- 1.4.22-alpha — 2016-05-25
- 1.4.21-alpha — 2016-05-20
- 1.4.16-alpha — 2016-05-19
- 1.4.15-alpha — 2016-05-17

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mockery/index.d.ts)
````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](https://github.com/jt000).

---
_Source: https://npm.io/package/@types/mockery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
