Function suite

  • Callable with optional name, followed by decorators. Allows:

    @suite
    @timeout(1000)
    @slow(500)

    To condensed on a single line:

    @suite(timeout(1000), slow(500))
    

    Please note the pit fall in the first case - the @suite must be the first decorator.

    Parameters

    • name: string
    • Rest ...decorators: ClassDecorator[]
      Rest

    Returns ClassDecorator

  • Called with decorators only, such as:

    @suite(timeout(1000), slow(500))
    

    Parameters

    • Rest ...decorator: ClassDecorator[]
      Rest

    Returns ClassDecorator

  • Type Parameters

    • TFunction extends Function

    Parameters

    • target: TFunction

    Returns void | TFunction

Generated using TypeDoc