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

Jest

Category
Frameworks and libraries
Docs outline
13 sections

Official docs outline

jestjs.io
  1. Getting started

    Installing, running tests, configuration, Babel and TypeScript.

  2. Using matchers

    expect, toBe, toEqual, truthiness, numbers, strings, arrays and exceptions.

  3. Testing asynchronous code

    Callbacks, promises, async/await, resolves and rejects.

  4. Setup and teardown

    beforeEach, afterEach, beforeAll, afterAll, scoping and test order.

  5. Mock functions

    jest.fn, mock.calls, return values and implementations.

  6. Snapshot testing

    toMatchSnapshot, inline snapshots, property matchers and updating.

  7. Timer mocks

    Fake timers, advancing time, and running pending timers.

  8. Manual mocks

    __mocks__ directories and mocking node modules and user modules.

  9. ES6 class mocks

    Automatic, manual and jest.mock factory class mocks.

  10. Bypassing module mocks

    requireActual and partial mocking.

  11. Test environment

    jsdom and node environments and per-file docblocks.

  12. ECMAScript modules

    Running ESM, unstable_mockModule and interop.

  13. Architecture and platform

    How Jest works internally.

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

All 113
↑↓ move ↵ open