Options
All
  • Public
  • Public/Protected
  • All
Menu

Options to pass to Mocha.

Hierarchy

  • MochaOptions

Index

Properties

Optional allowUncaught

allowUncaught: boolean

Propagate uncaught errors?

Optional asyncOnly

asyncOnly: boolean

Force done callback or promise?

Optional bail

bail: boolean

bail on the first test failure.

Optional checkLeaks

checkLeaks: boolean

Check for global variable leaks?

Optional color

color: boolean

Color TTY output from reporter

Optional delay

delay: boolean

Delay root suite execution?

Optional diff

diff: boolean

Show diff on failure?

Optional dryRun

dryRun: boolean

Report tests without running them?

Optional fgrep

fgrep: string

Test filter given string.

Optional forbidOnly

forbidOnly: boolean

Tests marked only fail the suite?

Optional forbidPending

forbidPending: boolean

Pending tests fail the suite?

Optional fullTrace

fullTrace: boolean

Full stacktrace upon failure?

Optional globals

globals: string[]

Variables expected in global scope.

Optional grep

grep: string | RegExp

Test filter given regular expression.

Optional growl

growl: boolean

Enable desktop notifications?

Optional inlineDiffs

inlineDiffs: boolean

Display inline diffs?

Optional invert

invert: boolean

Invert test filter matches?

Optional isWorker

isWorker: boolean

Should be true if Mocha process is running in a worker process.

Optional jobs

jobs: number

Max number of worker processes for parallel runs.

Optional noHighlighting

noHighlighting: boolean

Disable syntax highlighting?

Optional parallel

parallel: boolean

Run jobs in parallel

Optional reporter

reporter: string | ReporterConstructor

Reporter name or constructor.

Optional reporterOptions

reporterOptions: any

Reporter settings object.

Optional require

require: string[]

Pathname of rootHooks plugin for parallel runs.

Optional retries

retries: number

Number of times to retry failed tests.

Optional rootHooks

rootHooks: RootHookObject

Hooks to bootstrap the root suite with.

Optional slow

slow: number

Slow threshold value.

Optional timeout

timeout: string | number

Timeout threshold value.

Optional ui

Interface name.