Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Context

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

Private _runnable

_runnable: any

Optional currentTest

currentTest: Test

Optional test

test: Runnable

Methods

retries

  • retries(): number
  • retries(n: number): Context
  • Get the number of allowed retries on failed tests.

    Returns number

  • Set the number of allowed retries on failed tests.

    Parameters

    • n: number

    Returns Context

runnable

  • Get the context Runnable.

    Returns Runnable

  • Set the context Runnable.

    Parameters

    Returns Context

skip

  • skip(): never
  • Mark a test as skipped.

    Returns never

slow

  • slow(): number
  • slow(ms: string | number): Context
  • Get test slowness threshold.

    Returns number

  • Set test slowness threshold.

    Parameters

    • ms: string | number

    Returns Context

timeout

  • timeout(): number
  • timeout(ms: string | number): Context
  • Get test timeout.

    Returns number

  • Set test timeout.

    Parameters

    • ms: string | number

    Returns Context