Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHook

deprecated

use Mocha.Hook instead.

Hierarchy

Index

Properties

async

async: boolean

Optional ctx

deprecated

.ctx has type Mocha.Context in Mocha.Runnable.

Optional duration

duration: undefined | number

fn

fn: Function | undefined
deprecated

.fn has type Func | AsyncFunc in Mocha.Runnable.

Optional parent

parent: ISuite
deprecated

.parent has type Mocha.Suite in Mocha.Runnable.

sync

sync: boolean

timedOut

timedOut: boolean

title

title: string

type

type: "hook"

Methods

error

  • error(err: Error): void
  • deprecated

    .error() has additional overloads in Mocha.Hook.

    Parameters

    Returns void

timeout

  • timeout(n: number | string): this
  • deprecated

    .timeout() has additional overloads in Mocha.Runnable.

    Parameters

    • n: number | string

    Returns this

Generated using TypeDoc