Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TestFunction

Hierarchy

  • TestFunction

Callable

  • Describe a specification or test-case with the given callback fn acting as a thunk. The name of the function is used as the name of the test.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns Test

  • Describe a specification or test-case with the given callback fn acting as a thunk. The name of the function is used as the name of the test.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns Test

  • Describe a specification or test-case with the given title and callback fn acting as a thunk.

    • Only available when invoked via the mocha CLI.

    Parameters

    • title: string
    • Optional fn: Func

    Returns Test

  • Describe a specification or test-case with the given title and callback fn acting as a thunk.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns Test

Index

Properties

Methods

Properties

only

Indicates this test should be executed exclusively.

  • Only available when invoked via the mocha CLI.

skip

Indicates this test should not be executed.

  • Only available when invoked via the mocha CLI.

Methods

retries

  • retries(n: number): void
  • Number of attempts to retry.

    • Only available when invoked via the mocha CLI.

    Parameters

    • n: number

    Returns void

Generated using TypeDoc