extra credit Search 85,062 technologies ⌘K Download for Mac

Mocha

Category
Frameworks and libraries
Docs outline
16 sections

Official docs outline

mochajs.org
  1. Getting Started

    Installing Mocha and writing first tests with describe and it.

  2. Run Cycle Overview

    How Mocha loads files, runs hooks and reports.

  3. Asynchronous Code

    Callbacks, promises and async/await tests.

  4. Hooks

    before, after, beforeEach, afterEach hooks.

  5. Interfaces

    BDD, TDD, exports, QUnit and require styles.

  6. Pending and Exclusive Tests

    Skipping tests and using only.

  7. Retrying Tests

    Retrying flaky tests.

  8. Timeouts

    Suite, test and hook timeouts.

  9. Dynamically Generating Tests

    Generating tests from data.

  10. Assertions

    Using Node assert, Chai, Should.js and other libraries.

  11. Command-Line Usage

    CLI flags such as --grep, --watch, --require, --parallel.

  12. Configuring Mocha

    Config files, package.json, .mocharc and precedence.

  13. Parallel Mode

    Running test files in worker processes.

  14. Root Hook Plugins

    Defining global hooks via plugins.

  15. Reporters

    Built-in and third-party reporters.

  16. ESM and TypeScript

    Native ESM support and TypeScript usage.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 113
↑↓ move ↵ open