Overview
Jest is an open-source JavaScript testing framework, originally created at Facebook and now under the OpenJS Foundation, released under the MIT licence. You install it from npm into a project, write test files with describe, test and expect, and run them from the command line.
Its selling point is that it works with little or no configuration on most JavaScript projects, including ones using Babel, TypeScript, Node, React, Angular and Vue. Out of the box it gives you an assertion library, mocking of functions and modules, snapshot testing for checking that large objects or rendered output have not changed, and code coverage reports with a single flag.
Tests run in parallel in separate processes, and Jest runs previously failed tests first and orders the rest by how long they took, which keeps feedback quick on large suites. It is aimed at front-end and Node developers who want one tool that covers unit and integration testing.
Categories
Features
- Works without configuration on most JavaScript and TypeScript projects
- Built-in expect assertions with detailed failure messages
- Mock functions and module mocking through a custom resolver
- Snapshot testing, stored in separate files or inline
- Tests isolated in their own processes and run in parallel
- Re-runs previously failed tests first and orders runs by duration
- Code coverage reports with the --coverage flag, including untested files
- Versioned documentation for current and older major releases
Privacy
Jest is a library that runs on your own machine, so your code and test results stay local unless you send them somewhere yourself.
Pros & Cons
Pros
- Free and open source under the MIT licence
- One package covers assertions, mocking, snapshots and coverage
- Large community, so answers and examples are easy to find
- Fast feedback on big test suites thanks to parallel runs
Cons
- Needs Node.js and a command line; there is no graphical app
- Native ES module support is still marked experimental and needs a Node flag
- Snapshot tests are easy to overuse and approve without real review
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Testing · ShellCheck
Finds bugs in shell scripts.
Open Source No Signup Web Windows -
Automates browser testing across many languages.
Open Source No Signup Windows Linux -
Tests web applications end-to-end in the browser.
Open Source No Signup Windows Linux -
Testing · Playwright
Automates reliable end-to-end testing across browsers.
Open Source No Signup Windows Linux