Vitest
A fast JavaScript and TypeScript testing framework built on the Vite build tool, with an API compatible with Jest.
In more detail
It understands TypeScript and ES modules without extra setup and is common in modern front-end projects. It runs test files in parallel and can run in watch mode, rerunning affected tests whenever files change.
Related terms
- Jest — A popular JavaScript testing framework that bundles a test runner, assertions, mocking and code coverage in one package.
- 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