Constructors
constructor
-
Parameters
-
Parameters
Properties
failures
runner
stats
Static colors
Static inlineDiffs
inlineDiffs: boolean
Static symbols
Static useColors
useColors: boolean
Static window
window: object
Methods
Optional done
- done(failures: number, fn?: undefined | function): void
-
Parameters
-
failures: number
-
Optional fn: undefined | function
Returns void
epilogue
-
Returns void
Static color
- color(type: string, str: string): string
-
Parameters
Returns string
Static generateDiff
- generateDiff(actual: string, expected: string): string
-
Parameters
-
actual: string
-
expected: string
Returns string
Static list
- list(failures: Test[]): void
-
Parameters
Returns void
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.
https://mochajs.org/api/Mocha.reporters.Base.html