Jasmine
Jasmine

664
247
167
Jest
Jest

1.1K
388
113
Add tool

Jasmine vs Jest: What are the differences?

What is Jasmine? DOM-less simple JavaScript testing framework. 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.

What is Jest? Painless JavaScript Unit Testing. Jest provides you with multiple layers on top of Jasmine.

Jasmine and Jest can be categorized as "Javascript Testing Framework" tools.

"Can also be used for tdd " is the primary reason why developers consider Jasmine over the competitors, whereas "Open source" was stated as the key factor in picking Jest.

Jasmine and Jest are both open source tools. It seems that Jest with 26.1K GitHub stars and 3.53K forks on GitHub has more adoption than Jasmine with 14.4K GitHub stars and 2.12K GitHub forks.

Repro, Glympse, and Ubiqua are some of the popular companies that use Jest, whereas Jasmine is used by Coderus, Infoshare, and Ztory. Jest has a broader approval, being mentioned in 262 company stacks & 150 developers stacks; compared to Jasmine, which is listed in 143 company stacks and 75 developer stacks.

What is Jasmine?

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.

What is Jest?

Jest provides you with multiple layers on top of Jasmine.

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

Why do developers choose Jasmine?
Why do developers choose Jest?
What are the cons of using Jasmine?
What are the cons of using Jest?
What companies use Jasmine?
What companies use Jest?
What are some alternatives to Jasmine and Jest?
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.
Karma
Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like.
Enzyme
Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.
Cypress
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.
Protractor
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
See all alternatives
What tools integrate with Jasmine?
What tools integrate with Jest?
    No integrations found
      No integrations found
      Decisions about Jasmine and Jest
      No stack decisions found
      Interest over time
      Reviews of Jasmine and Jest
      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 Jasmine and Jest
      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 RentChek
      RentChek uses JasmineJasmine

      We use Jasmine for all our front-end web interface tests. Works great for testing all our Angular components.

      Avatar of Ron Apelbaum
      Ron Apelbaum uses JasmineJasmine

      I write unit tests with Jasmine, and use nodejs Jasmine as a test runner.

      Avatar of Fred Steffen
      Fred Steffen uses JasmineJasmine

      It has tons of features, great documentation

      Avatar of Giovanni Candido da Silva
      Giovanni Candido da Silva uses JasmineJasmine

      Test tool for the interface code

      Avatar of Evan Luc
      Evan Luc uses JasmineJasmine

      Front and back-end tests.

      How much does Jasmine cost?
      How much does Jest cost?
      Pricing unavailable
      Pricing unavailable
      News about Jasmine
      More news