## Index

### Modules

- "mocha"
- "mocha/lib/interfaces/common"
- "mocha/lib/ms"
- NodeJS

### Classes

- Mocha

### Interfaces

- BrowserMocha
- HTMLLIElement
- MochaSetupOptions
- Window

### Type aliases

- MochaDone
- ReporterConstructor

### Variables

- after
- afterEach
- before
- beforeEach
- context
- describe
- it
- mocha
- setup
- specify
- suite
- suiteSetup
- suiteTeardown
- teardown
- test
- xcontext
- xdescribe
- xit
- xspecify

### Functions

- run

## Type aliases

### MochaDone

MochaDone: Done

- Defined in node_modules/@types/mocha/index.d.ts:2848

deprecated

  use `Mocha.Done` instead.

### ReporterConstructor

ReporterConstructor: ReporterConstructor

- Defined in node_modules/@types/mocha/index.d.ts:2851

deprecated

  use `Mocha.ReporterConstructor` instead.

## Variables

### after

after: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2662

Execute after running tests.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#after

### afterEach

afterEach: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2698

Execute after each test case.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#afterEach

### before

before: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2644

Execute before running tests.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#before

### beforeEach

beforeEach: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2680

Execute before each test case.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#beforeEach

### context

context: SuiteFunction

- Defined in node_modules/@types/mocha/index.d.ts:2721

Describe a "suite" containing nested suites and tests.

- Only available when invoked via the mocha CLI.

### describe

describe: SuiteFunction

- Defined in node_modules/@types/mocha/index.d.ts:2714

Describe a "suite" containing nested suites and tests.

- Only available when invoked via the mocha CLI.

### it

it: TestFunction

- Defined in node_modules/@types/mocha/index.d.ts:2749

Describes a test case.

- Only available when invoked via the mocha CLI.

### Const mocha

mocha: BrowserMocha

- Defined in node_modules/@types/mocha/index.d.ts:2814

Mocha global.

- Only supported in the browser.

### setup

setup: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2689

Execute before each test case.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#beforeEach

### specify

specify: TestFunction

- Defined in node_modules/@types/mocha/index.d.ts:2756

Describes a test case.

- Only available when invoked via the mocha CLI.

### suite

suite: SuiteFunction

- Defined in node_modules/@types/mocha/index.d.ts:2728

Describe a "suite" containing nested suites and tests.

- Only available when invoked via the mocha CLI.

### suiteSetup

suiteSetup: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2653

Execute before running tests.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#before

### suiteTeardown

suiteTeardown: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2671

Execute after running tests.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#after

### teardown

teardown: HookFunction

- Defined in node_modules/@types/mocha/index.d.ts:2707

Execute after each test case.

- Only available when invoked via the mocha CLI.

see

  https://mochajs.org/api/global.html#afterEach

### test

test: TestFunction

- Defined in node_modules/@types/mocha/index.d.ts:2763

Describes a test case.

- Only available when invoked via the mocha CLI.

### xcontext

xcontext: PendingSuiteFunction

- Defined in node_modules/@types/mocha/index.d.ts:2742

Pending suite.

- Only available when invoked via the mocha CLI.

### xdescribe

xdescribe: PendingSuiteFunction

- Defined in node_modules/@types/mocha/index.d.ts:2735

Pending suite.

- Only available when invoked via the mocha CLI.

### xit

xit: PendingTestFunction

- Defined in node_modules/@types/mocha/index.d.ts:2770

Describes a pending test case.

- Only available when invoked via the mocha CLI.

### xspecify

xspecify: PendingTestFunction

- Defined in node_modules/@types/mocha/index.d.ts:2777

Describes a pending test case.

- Only available when invoked via the mocha CLI.

## Functions

### run

- run(): void

- - Defined in node_modules/@types/mocha/index.d.ts:2635

  Triggers root suite execution.

  - Only available if flag --delay is passed into Mocha.
  - Only available when invoked via the mocha CLI.
  see

    https://mochajs.org/api/global.html#runWithSuite

  #### Returns void

Generated using TypeDoc