Jest
A popular JavaScript testing framework that bundles a test runner, assertions, mocking and code coverage in one package.
In more detail
It finds test files by name, runs each file in its own isolated environment and prints a readable difference when an assertion fails. It is widely used for React projects.
Related terms
- Vitest — A fast JavaScript and TypeScript testing framework built on the Vite build tool, with an API compatible with Jest.
- Mocha — A long-established JavaScript test framework that provides describe and it, usually paired with a separate assertion library.
- test runner — A tool that finds test files, runs the tests in them and reports which passed and which failed.
- test framework — A library and set of conventions for writing, organising and running automated tests in a language.
- JavaScript — The programming language of web browsers, also widely used on servers through Node.js.
Taught in
- Native Test Runner: node:test & node:assert/strict — Node.js Internals & Backend Services
- Introducing pytest — Automated Testing, TDD & Quality Engineering