# @types/jest-in-case

> TypeScript definitions for jest-in-case

Latest version **1.0.9** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jest-in-case
pnpm add @types/jest-in-case
yarn add @types/jest-in-case
bun add @types/jest-in-case
```

## 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.0.9 |
| Published | 2023-11-21 |
| First published | 2017-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/jest](https://npm.io/package/@types/jest.md) *
- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.0.9 (latest) — 2023-11-21
- 1.0.6 (ts4.3) — 2022-06-17
- 1.0.5 (ts3.8) — 2021-07-08
- 1.0.2 (ts3.1) — 2020-04-03
- 1.0.1 (ts3.0) — 2019-02-05
- 1.0.0 (ts2.3) — 2017-12-29
- 1.0.8 — 2023-11-07
- 1.0.7 — 2023-10-18
- 1.0.4 — 2021-07-03
- 1.0.3 — 2020-10-20

## README

# Installation
> `npm install --save @types/jest-in-case`

# Summary
This package contains type definitions for jest-in-case (https://github.com/thinkmill/jest-in-case#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-in-case.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-in-case/index.d.ts)
````ts
/// <reference types="jest" />
/// <reference types="node" />

interface Config {
    name?: string | undefined;
    only?: boolean | undefined;
    skip?: boolean | undefined;
    [key: string]: any;
}

type Tester<Opts> = (opts: Opts, done: jest.DoneCallback) => any;

type TestCases<Opts> = readonly Opts[] | { [name: string]: Opts };

declare function cases<Opts extends Config>(title: string, tester: Tester<Opts>, testCases: TestCases<Opts>): void;

export = cases;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: [@types/jest](https://npmjs.com/package/@types/jest), [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Geovani de Souza](https://github.com/geovanisouza92).

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