Alternatives to Jest logo

Alternatives to Jest

Mocha, Selenium, AVA, Jasmine, and Cypress are the most popular alternatives and competitors to Jest.
1.5K
828
+ 1
125

What is Jest and what are its top alternatives?

Jest provides you with multiple layers on top of Jasmine.
Jest is a tool in the Javascript Testing Framework category of a tech stack.
Jest is an open source tool with 28.7K GitHub stars and 4K GitHub forks. Here鈥檚 a link to Jest's open source repository on GitHub

Jest alternatives & related posts

related Mocha posts

Dschinkel Schinkel
Dschinkel Schinkel
Mocha
Mocha
Jest
Jest
JavaScript
JavaScript
React
React
Enzyme
Enzyme
#Tdd
#Bdd
#Testdrivendevelopment

I use both mocha and Jest because:

  • I don't care whether teams use Jest or Mocha. But jest is way too overhyped. Most devs are writing integration tests and think that it's so much better but frankly I don't write integration tests as the way to get both design feedback and confidence when I code. I adhere to the test pyramid, not ice cream cone or the dumb "trophy"

  • I TDD, so I only ever use the "API" of test frameworks. I don't do a lot of integration tests for TDD and all the bells and whistles Jest provides you from the command-line I just don't need. And I certainly do not care about or touch Jest Snapshots, I despise them

  • My tests are fast enough because I write isolated tests with TDD, so I don't run into performance issues. Example: I write my tests in a way that I can run 300 tests in literally 1 second with mocha. So the Jest ability to pinpoint and only run those tests which are affected by code changes. I want to run all of them every time when I TDD. It's a different mindset when you TDD

  • I also mainly code in IntelliJ or WebStorm because I feel the tools in that IDE far surpass VSCode and I also love running the test UI runner in it vs. lousy command-line

  • I feel both mocha and Jest read just fine in terms of code readability. Jest might have shorter assertion syntax but I don't really care. I just care that I can read the damn test and my tests are written well and my test descriptions, as well as the code itself including constants represent business language, not technical. I care most about BDD, clean code, 4 rules of simple design, and SOLID

  • I don't like using mock frameworks so no I don't use Jest's Mocking framework. I don't have to mock a lot in my tests due to the nature of how I strive to code...I keep my design simple and modular using principals such as clean code and 4 rules of simple design. If I must mock, I create very simple custom mocks with JS

  • On the contrary to the belief that integration tests and mount are the way to go (this belief drives me absolutely crazy, especially Dodd's promoting that), I TDD with shallow & enzyme. My tests are simple. My design is driven by my tests and my tests give me quick and useful feedback. I have a course I'm working on coming out soon on TDD with React to show you how to truly test the FE and why the ice cream cone and trophy suck (you're being scammed people). Watch for that here: https://twitter.com/DaveSchinkel/status/1062267649235791873

Don't forget to upvote this post!

Mocha Jest JavaScript React @jsdom Enzyme #tdd #bdd #testdrivendevelopment

See more
Jack Graves
Jack Graves
Head of Product Development at Automation Consultants | 3 upvotes 31.4K views
atAutomation ConsultantsAutomation Consultants
JUnit
JUnit
Jest
Jest
Apache JMeter
Apache JMeter
Mocha
Mocha

We use JUnit and Jest to perform the bulk of our automated test scenarios, with additional work with Apache JMeter for performance testing - for example, the Atlassian Data Center compliance testing is performed with JMeter. Jest provides testing for the React interfaces, which make up the backend of our App offerings. JUnit is used for Unit Testing our Server-based Apps. Mocha is another tool we use.

See more

related Selenium posts

Jorge Quiros
Jorge Quiros
SR QA Automation Engineer at Indecomm | 8 upvotes 251.3K views
Protractor
Protractor
Jasmine
Jasmine
JavaScript
JavaScript
Selenium
Selenium
Cypress
Cypress
#Testing
#Cypress
#Qaautomation

This is a trending topic on Automation testing for E2E web applications.

I have used Protractor and Jasmine for automation testing frameworks in JavaScript by using the Selenium web driver manager.

Now, new guy in town Cypress does not use Selenium and runs directly in your app without any json wire protrocol, but it does not support parallel testing or mobile testing.

Have you experienced both? Should I stick with old and known ?

#testing cypress #selenium qaautomation #qa

See more
Benjamin Poon
Benjamin Poon
QA Manager - Engineering at HBC Digital | 8 upvotes 70.6K views
Nightwatchjs
Nightwatchjs
Selenium
Selenium
JavaScript
JavaScript
Cucumber
Cucumber
GitHub
GitHub
GoCD
GoCD
Docker
Docker
ExpressJS
ExpressJS
React
React
PostgreSQL
PostgreSQL

For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

See more
AVA logo

AVA

86
91
28
86
91
+ 1
28
A refined, futuristic test runner
AVA logo
AVA
VS
Jest logo
Jest

related Jasmine posts

Jorge Quiros
Jorge Quiros
SR QA Automation Engineer at Indecomm | 8 upvotes 251.3K views
Protractor
Protractor
Jasmine
Jasmine
JavaScript
JavaScript
Selenium
Selenium
Cypress
Cypress
#Testing
#Cypress
#Qaautomation

This is a trending topic on Automation testing for E2E web applications.

I have used Protractor and Jasmine for automation testing frameworks in JavaScript by using the Selenium web driver manager.

Now, new guy in town Cypress does not use Selenium and runs directly in your app without any json wire protrocol, but it does not support parallel testing or mobile testing.

Have you experienced both? Should I stick with old and known ?

#testing cypress #selenium qaautomation #qa

See more
Jasmine
Jasmine
Karma
Karma
Angular CLI
Angular CLI
Jest
Jest
Visual Studio Code
Visual Studio Code

Switched from Jasmine with Karma that come setup by Angular CLI to use Jest instead, since Jasmine and Karma were very finicky in my setup and had to be reconfigured frequently to run tests properly.

Jest was also easier to integrate into my workflow with Visual Studio Code.

See more
Cypress logo

Cypress

304
157
22
304
157
+ 1
22
Better, faster, and more reliable testing for anything that runs in a browser.
Cypress logo
Cypress
VS
Jest logo
Jest

related Cypress posts

Robert Zuber
Robert Zuber
CTO at CircleCI | 16 upvotes 306.1K views
atCircleCICircleCI
Next.js
Next.js
React
React
Storybook
Storybook
TypeScript
TypeScript
Emotion
Emotion
GraphQL
GraphQL
Apollo
Apollo
Jest
Jest
Percy
Percy
Cypress
Cypress

We are in the process of adopting Next.js as our React framework and using Storybook to help build our React components in isolation. This new part of our frontend is written in TypeScript, and we use Emotion for CSS/styling. For delivering data, we use GraphQL and Apollo. Jest, Percy, and Cypress are used for testing.

See more
Jorge Quiros
Jorge Quiros
SR QA Automation Engineer at Indecomm | 8 upvotes 251.3K views
Protractor
Protractor
Jasmine
Jasmine
JavaScript
JavaScript
Selenium
Selenium
Cypress
Cypress
#Testing
#Cypress
#Qaautomation

This is a trending topic on Automation testing for E2E web applications.

I have used Protractor and Jasmine for automation testing frameworks in JavaScript by using the Selenium web driver manager.

Now, new guy in town Cypress does not use Selenium and runs directly in your app without any json wire protrocol, but it does not support parallel testing or mobile testing.

Have you experienced both? Should I stick with old and known ?

#testing cypress #selenium qaautomation #qa

See more
Enzyme logo

Enzyme

254
170
0
254
170
+ 1
0
JavaScript Testing utilities for React, by Airbnb
    Be the first to leave a pro
    Enzyme logo
    Enzyme
    VS
    Jest logo
    Jest

    related Enzyme posts

    Russel Werner
    Russel Werner
    Lead Engineer at StackShare | 6 upvotes 62.8K views
    atStackShareStackShare
    Jest
    Jest
    Enzyme
    Enzyme
    React Storybook
    React Storybook
    Happo.io
    Happo.io
    Percy
    Percy

    We use Jest because when we rebooted our "front end" stack earlier last year, we need to have a testing solution (we didn't have any front-end tests before that!). Jest is fast and convenient and it has plenty of community support behind it. It let's us run our unit tests with Enzyme and snapshot tests.

    This is an area that we are constantly reviewing to see what can be improved, both in terms of developer needs, accuracy, test maintainability, and coverage.

    I'm currently exploring using React Storybook to be the record of snapshot tests and using some online services, such as Happo.io and Percy in our CI pipeline.

    See more
    Dschinkel Schinkel
    Dschinkel Schinkel
    Mocha
    Mocha
    Jest
    Jest
    JavaScript
    JavaScript
    React
    React
    Enzyme
    Enzyme
    #Tdd
    #Bdd
    #Testdrivendevelopment

    I use both mocha and Jest because:

    • I don't care whether teams use Jest or Mocha. But jest is way too overhyped. Most devs are writing integration tests and think that it's so much better but frankly I don't write integration tests as the way to get both design feedback and confidence when I code. I adhere to the test pyramid, not ice cream cone or the dumb "trophy"

    • I TDD, so I only ever use the "API" of test frameworks. I don't do a lot of integration tests for TDD and all the bells and whistles Jest provides you from the command-line I just don't need. And I certainly do not care about or touch Jest Snapshots, I despise them

    • My tests are fast enough because I write isolated tests with TDD, so I don't run into performance issues. Example: I write my tests in a way that I can run 300 tests in literally 1 second with mocha. So the Jest ability to pinpoint and only run those tests which are affected by code changes. I want to run all of them every time when I TDD. It's a different mindset when you TDD

    • I also mainly code in IntelliJ or WebStorm because I feel the tools in that IDE far surpass VSCode and I also love running the test UI runner in it vs. lousy command-line

    • I feel both mocha and Jest read just fine in terms of code readability. Jest might have shorter assertion syntax but I don't really care. I just care that I can read the damn test and my tests are written well and my test descriptions, as well as the code itself including constants represent business language, not technical. I care most about BDD, clean code, 4 rules of simple design, and SOLID

    • I don't like using mock frameworks so no I don't use Jest's Mocking framework. I don't have to mock a lot in my tests due to the nature of how I strive to code...I keep my design simple and modular using principals such as clean code and 4 rules of simple design. If I must mock, I create very simple custom mocks with JS

    • On the contrary to the belief that integration tests and mount are the way to go (this belief drives me absolutely crazy, especially Dodd's promoting that), I TDD with shallow & enzyme. My tests are simple. My design is driven by my tests and my tests give me quick and useful feedback. I have a course I'm working on coming out soon on TDD with React to show you how to truly test the FE and why the ice cream cone and trophy suck (you're being scammed people). Watch for that here: https://twitter.com/DaveSchinkel/status/1062267649235791873

    Don't forget to upvote this post!

    Mocha Jest JavaScript React @jsdom Enzyme #tdd #bdd #testdrivendevelopment

    See more
    Protractor logo

    Protractor

    164
    111
    6
    164
    111
    + 1
    6
    End-to-end test framework for Angular and AngularJS applications
    Protractor logo
    Protractor
    VS
    Jest logo
    Jest

    related Protractor posts

    Jorge Quiros
    Jorge Quiros
    SR QA Automation Engineer at Indecomm | 8 upvotes 251.3K views
    Protractor
    Protractor
    Jasmine
    Jasmine
    JavaScript
    JavaScript
    Selenium
    Selenium
    Cypress
    Cypress
    #Testing
    #Cypress
    #Qaautomation

    This is a trending topic on Automation testing for E2E web applications.

    I have used Protractor and Jasmine for automation testing frameworks in JavaScript by using the Selenium web driver manager.

    Now, new guy in town Cypress does not use Selenium and runs directly in your app without any json wire protrocol, but it does not support parallel testing or mobile testing.

    Have you experienced both? Should I stick with old and known ?

    #testing cypress #selenium qaautomation #qa

    See more
    Chai logo

    Chai

    85
    24
    0
    85
    24
    + 1
    0
    A BDD / TDD assertion library
      Be the first to leave a pro
      Chai logo
      Chai
      VS
      Jest logo
      Jest

      related Chai posts

      React
      React
      LoopBack
      LoopBack
      Node.js
      Node.js
      ExpressJS
      ExpressJS
      Elasticsearch
      Elasticsearch
      Kibana
      Kibana
      Logstash
      Logstash
      Sequelize
      Sequelize
      Mocha
      Mocha
      Chai
      Chai
      Visual Studio Code
      Visual Studio Code

      React LoopBack Node.js ExpressJS Elasticsearch Kibana Logstash Sequelize Mocha Chai Visual Studio Code are the combo of technologies being used by me to build BestPrice Extension with all its micro-services & Web-based fragments

      See more
      SinonJS logo

      SinonJS

      53
      13
      1
      53
      13
      + 1
      1
      Standalone test spies, stubs and mocks for JavaScript
      SinonJS logo
      SinonJS
      VS
      Jest logo
      Jest
      QUnit logo

      QUnit

      47
      37
      13
      47
      37
      + 1
      13
      A JavaScript Unit Testing framework
      QUnit logo
      QUnit
      VS
      Jest logo
      Jest
      SuperTest logo

      SuperTest

      22
      5
      0
      22
      5
      + 1
      0
      A library for testing node.js HTTP servers
        Be the first to leave a pro
        SuperTest logo
        SuperTest
        VS
        Jest logo
        Jest
        CodeceptJS logo

        CodeceptJS

        13
        10
        20
        13
        10
        + 1
        20
        Modern End 2 End Testing Framework for NodeJS
        CodeceptJS logo
        CodeceptJS
        VS
        Jest logo
        Jest
        Majestic GUI logo

        Majestic GUI

        1
        6
        0
        1
        6
        + 1
        0
        Zero config GUI for Jest
          Be the first to leave a pro
          Majestic GUI logo
          Majestic GUI
          VS
          Jest logo
          Jest
          Vorlon.JS logo

          Vorlon.JS

          1
          2
          0
          1
          2
          + 1
          0
          An open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript
            Be the first to leave a pro
            Vorlon.JS logo
            Vorlon.JS
            VS
            Jest logo
            Jest