# Jest

> Delightful JavaScript Testing

Source: https://talira.ai/catalog/jest-wp596gce
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [OpenJS Foundation](https://talira.ai/orgs/openjs-foundation.md)

Jest is a JavaScript testing framework that works out of the box for most projects: a test runner, assertions, mocks and coverage in one package. Its watch mode reruns only the test files related to what changed, and snapshot testing records large objects or rendered output so later changes show up as diffs. Tests run in parallel in separate processes, previously failed tests run first, and coverage needs only --coverage. It's an OpenJS Foundation project.

## Links

- Website: https://jestjs.io
- GitHub: https://github.com/jestjs/jest
- Docs: https://jestjs.io/docs/getting-started

## Problems it solves

- set up unit tests for a JavaScript project without wiring together five libraries
- rerun only the tests affected by the file I just changed
- catch unexpected changes in a component's rendered output
- mock a module in my JavaScript tests
- measure test coverage for a TypeScript project
- test React components and plain functions with the same tool
- a test runner for Node.js that runs test files in parallel

## Features

- zero-config setup for most projects
- interactive watch mode
- snapshot testing
- mocks and spies
- code coverage with --coverage
- tests isolated in parallel processes
- failed tests first, ordered by duration

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 0.93, adoption 0.93, momentum 0.75, community 1.00, backing 0.30, extensibility 0.40.

- last commit 12 days ago
- 50 commits in the last 90 days
- latest release v30.5.2 2 months ago
- 45.5k GitHub stars
- 1767 contributors
- accepts sponsorship (Open Collective)
- backed by OpenJS Foundation
- has a plugin system

## Alternatives

- [Vitest](https://talira.ai/catalog/vitest-eyy494yh.md): Next generation testing framework powered by Vite
- [Mocha](https://talira.ai/catalog/mocha-81yyxe95.md): Feature-rich JavaScript test framework for Node.js and the browser
- [pytest](https://talira.ai/catalog/pytest-5repc51s.md): pytest: helps you write better programs
