Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MochaOptions

Options to pass to Mocha.

Hierarchy

  • MochaOptions

Index

Properties

Optional allowUncaught

allowUncaught: undefined | false | true

Optional asyncOnly

asyncOnly: undefined | false | true

Optional bail

bail: undefined | false | true

bail on the first test failure.

Optional delay

delay: undefined | false | true

Optional enableTimeouts

enableTimeouts: undefined | false | true

Optional forbidOnly

forbidOnly: undefined | false | true

Optional forbidPending

forbidPending: undefined | false | true

Optional fullStackTrace

fullStackTrace: undefined | false | true

display the full stack trace on failure.

Optional globals

globals: string[]

Array of accepted globals.

Optional grep

grep: string | RegExp

string or regexp to filter tests with.

Optional growl

growl: undefined | false | true

Enable growl support.

Optional hideDiff

hideDiff: undefined | false | true

Do not show diffs at all.

Optional ignoreLeaks

ignoreLeaks: undefined | false | true

ignore global leaks.

Optional inlineDiffs

inlineDiffs: undefined | false | true

Use inline diffs rather than +/-.

Optional noHighlighting

noHighlighting: undefined | false | true

Optional reporter

reporter: string | ReporterConstructor

Reporter constructor, built-in reporter name, or reporter module path. Defaults to "spec".

Optional reporterOptions

reporterOptions: any

Options to pass to the reporter.

Optional retries

retries: undefined | number

number of times to retry failed tests.

Optional slow

slow: undefined | number

milliseconds to wait before considering a test slow.

Optional timeout

timeout: undefined | number

timeout in milliseconds.

Optional ui

Test interfaces ("bdd", "tdd", "exports", etc.).

Optional useColors

useColors: undefined | false | true

Emit color output.

Generated using TypeDoc