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

1.0.9 • Public • Published

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

/// <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

Credits

These definitions were written by Geovani de Souza.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jest-in-case

Weekly Downloads

16,017

Version

1.0.9

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • types