DefinitelyTyped

Index

Variables

Interfaces

Functions

Variables

context: { only(contextTitle: string, spec: () => void): void; skip(contextTitle: string, spec: () => void): void; timeout(ms: number): void; (contextTitle: string, spec: () => void): void; }

()

public only()

.contextTitle.contextTitle: string

.spec.spec: () => void

public skip()

.contextTitle.contextTitle: string

.spec.spec: () => void

public timeout()

.ms.ms: number

describe: { only(description: string, spec: () => void): void; skip(description: string, spec: () => void): void; timeout(ms: number): void; (description: string, spec: () => void): void; }

()

public only()

.description.description: string

.spec.spec: () => void

public skip()

.description.description: string

.spec.spec: () => void

public timeout()

.ms.ms: number

it: { only(expectation: string, assertion?: () => void): void; only(expectation: string, assertion?: (done: MochaDone) => void): void; skip(expectation: string, assertion?: () => void): void; skip(expectation: string, assertion?: (done: MochaDone) => void): void; timeout(ms: number): void; (expectation: string, assertion?: () => void): void; (expectation: string, assertion?: (done: MochaDone) => void): void; }

()

()

public only()

optional .assertion.assertion?: () => void

.expectation.expectation: string

public only()

optional .assertion.assertion?: (done: MochaDone) => void

.expectation.expectation: string

public skip()

optional .assertion.assertion?: () => void

.expectation.expectation: string

public skip()

optional .assertion.assertion?: (done: MochaDone) => void

.expectation.expectation: string

public timeout()

.ms.ms: number

mocha: Mocha

Functions

after(action: () => void)

Parameters

  • action: () => void

after(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

afterEach(action: () => void)

Parameters

  • action: () => void

afterEach(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

before(action: () => void)

Parameters

  • action: () => void

before(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

beforeEach(action: () => void)

Parameters

  • action: () => void

beforeEach(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

setup(action: () => void)

Parameters

  • action: () => void

setup(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

suiteSetup(action: () => void)

Parameters

  • action: () => void

suiteSetup(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

suiteTeardown(action: () => void)

Parameters

  • action: () => void

suiteTeardown(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void

teardown(action: () => void)

Parameters

  • action: () => void

teardown(action: (done: MochaDone) => void)

Parameters

  • action: (done: MochaDone) => void