1.0.9 • Published 6 months ago

@types/jest-in-case v1.0.9

Weekly downloads
5,026
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for jest-in-case 1.0
// Project: https://github.com/thinkmill/jest-in-case#readme
// Definitions by: Geovani de Souza <https://github.com/geovanisouza92>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8

/// <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> = ReadonlyArray<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.

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

7 months ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

6 years ago