Jest
- Category
- Frameworks and libraries
- Docs outline
- 13 sections
Official docs outline
jestjs.io- Getting started
Installing, running tests, configuration, Babel and TypeScript.
- Using matchers
expect, toBe, toEqual, truthiness, numbers, strings, arrays and exceptions.
- Testing asynchronous code
Callbacks, promises, async/await, resolves and rejects.
- Setup and teardown
beforeEach, afterEach, beforeAll, afterAll, scoping and test order.
- Mock functions
jest.fn, mock.calls, return values and implementations.
- Snapshot testing
toMatchSnapshot, inline snapshots, property matchers and updating.
- Timer mocks
Fake timers, advancing time, and running pending timers.
- Manual mocks
__mocks__ directories and mocking node modules and user modules.
- ES6 class mocks
Automatic, manual and jest.mock factory class mocks.
- Bypassing module mocks
requireActual and partial mocking.
- Test environment
jsdom and node environments and per-file docblocks.
- ECMAScript modules
Running ESM, unstable_mockModule and interop.
- 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.