Mocha
A long-established JavaScript test framework that provides describe and it, usually paired with a separate assertion library.
In more detail
Many projects pair it with an assertion library such as Chai. It runs in Node.js and in browsers.
Related terms
- Jest — A popular JavaScript testing framework that bundles a test runner, assertions, mocking and code coverage in one package.
- Vitest — A fast JavaScript and TypeScript testing framework built on the Vite build tool, with an API compatible with Jest.
- test runner — A tool that finds test files, runs the tests in them and reports which passed and which failed.
Taught in
- Native Test Runner: node:test & node:assert/strict — Node.js Internals & Backend Services