Options
All
  • Public
  • Public/Protected
  • All
Menu

Initialize a new Base reporter.

All other reporters generally inherit from this reporter, providing stats such as test duration, number of tests passed / failed, etc.

see

https://mochajs.org/api/Mocha.reporters.Base.html

Hierarchy

  • Base

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    Returns Base

  • deprecated

    Use the overload that accepts Mocha.Runner instead.

    Parameters

    Returns Base

Properties

failures

failures: Test[]

Test failures

runner

runner: Runner

The configured runner

stats

stats: Stats

Test run statistics

Methods

Optional done

  • done(failures: number, fn?: undefined | function): void
  • Parameters

    • failures: number
    • Optional fn: undefined | function

    Returns void

epilogue

  • epilogue(): void

Generated using TypeDoc