Variables added to the global scope by Mocha when run in the CLI.

### Hierarchy

- MochaGlobals
  - Window
  - Global

## Index

### Properties

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

## Properties

### after

after: HookFunction

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

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:2283

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:2256

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:2274

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:2297

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:2290

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:2318

Describes a test case.

- Only available when invoked via the mocha CLI.

### run

run: run

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

### setup

setup: HookFunction

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

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:2325

Describes a test case.

- Only available when invoked via the mocha CLI.

### suite

suite: SuiteFunction

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

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:2348

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:2357

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:2375

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:2389

Describes a test case.

- Only available when invoked via the mocha CLI.

### xcontext

xcontext: PendingSuiteFunction

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

Pending suite.

- Only available when invoked via the mocha CLI.

### xdescribe

xdescribe: PendingSuiteFunction

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

Pending suite.

- Only available when invoked via the mocha CLI.

### xit

xit: PendingTestFunction

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

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:2339

Describes a pending test case.

- Only available when invoked via the mocha CLI.

Generated using TypeDoc