Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@types/jest/index.d"

Index

Type aliases

ExtractEachCallbackArgs

ExtractEachCallbackArgs<T>: { 1: [T[0]]; 2: [T[0], T[1]]; 3: [T[0], T[1], T[2]]; 4: [T[0], T[1], T[2], T[3]]; 5: [T[0], T[1], T[2], T[3], T[4]]; 6: [T[0], T[1], T[2], T[3], T[4], T[5]]; ... 4 more ...; 'fallback': (T extends readonly (infer U)[] ? U : any)[]; }[T extends readonly [...] ? 1 : T extends readonly [...] ? 2 : T extends readonly [....

Type parameters

  • T: ReadonlyArray<any>

Variables

afterAll

afterAll: Lifecycle

afterEach

afterEach: Lifecycle

beforeAll

beforeAll: Lifecycle

beforeEach

beforeEach: Lifecycle

describe

describe: Describe

Const expect

expect: Expect

fdescribe

fdescribe: Describe

fit

fit: It

it

it: It

test

test: It

xdescribe

xdescribe: Describe

xit

xit: It

xtest

xtest: It

Functions

fail

  • fail(error?: any): never
  • Fails a test when called within one.

    Parameters

    • Optional error: any

    Returns never

pending

  • pending(reason?: undefined | string): void
  • If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending.

    Parameters

    • Optional reason: undefined | string

    Returns void

spyOn

  • spyOn<T>(object: T, method: keyof T): Spy
  • Type parameters

    • T

    Parameters

    • object: T
    • method: keyof T

    Returns Spy

Generated using TypeDoc