Add tool

What is Jest?

Jest provides you with multiple layers on top of Jasmine.

What is Mocha?

Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose Jest?
Why do developers choose Mocha?
What are the cons of using Jest?
What are the cons of using Mocha?
Be the first to leave a con
What companies use Jest?
What companies use Mocha?
What are some alternatives to Jest and Mocha?
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
See all alternatives
What tools integrate with Jest?
What tools integrate with Mocha?
Decisions about Jest and Mocha
No stack decisions found
Interest over time
Reviews of Jest and Mocha
Avatar of cristiangiagante
.Net Developer at Hexacta
Review ofJestJest

I'm using Jest for 3 months in a Vue JS project . I need to use a lot of custom search of related topics in jest docs because it's not clear. The examples are very poor too.

How developers use Jest and Mocha
Avatar of Volkan Özçelik
Volkan Özçelik uses JestJest

Jest is my unit-testing tool of choice.

Almost all unit testing suites (Mocha, Jasmine, etc.) are more or less the same.

The main advantage I guess, is that it integrates pretty well with React and Enzyme.

Avatar of Matt Welke
Matt Welke uses MochaMocha

Used for unit testing when working with Node.js. Used over other testing frameworks because of good compatibility with TypeScript and ts-node.

Avatar of Kang Hyeon Ku
Kang Hyeon Ku uses MochaMocha

javascript 테스트를 위해 써본 프레임워크 이다. 초반 유명한 프레임워크중 하나였는데 요즘은 너무 테스트 프레임워크도 다양해져 잘 모르겠다. junit 에게는 hamcrest 이 있다면 mocha 에게는 chai가 있다.

Avatar of Dave Woolfenden
Dave Woolfenden uses MochaMocha

Is a feature-rich JavaScript test framework running on Node.js and in the browser supporting asynchronous testing.

Avatar of Kingsley Victor
Kingsley Victor uses MochaMocha

Mocha is ideal for running tests on apis built with Node's Express

Avatar of Tim De Lange
Tim De Lange uses MochaMocha

Unit testing on shared code between brow ser and back end.

How much does Jest cost?
How much does Mocha cost?
Pricing unavailable
Pricing unavailable