Cypress vs Enzyme vs Jest

Need advice about which tool to choose?Ask the StackShare community!

Cypress

1K
1.1K
+ 1
85
Enzyme

444
307
+ 1
0
Jest

3.2K
2.2K
+ 1
158
Decisions about Cypress, Enzyme, and Jest
Shared insights
on
JestJestCypressCypress

As we all know testing is an important part of any application. To assist with our testing we are going to use both Cypress and Jest. We feel these tools complement each other and will help us get good coverage of our code. We will use Cypress for our end to end testing as we've found it quite user friendly. Jest will be used for our unit tests because we've seen how many larger companies use it with great success.

See more

Postman will be used to do integration testing with the backend API we create. It offers a clean interface to create many requests, and you can even organize these requests into collections. It helps to test the backend API first to make sure it's working before using it in the front-end. Jest can also be used for testing and is already embedded into React. Not only does it offer unit testing support in javascript, it can also do snapshot testing for the front-end to make sure components are rendering correctly. Enzyme is complementary to Jest and offers more functions such as shallow rendering. UnitTest will be used for Python testing as it is simple, has a lot of functionality and already built in with python. Sentry will be used for keeping track of errors as it is also easily integratable with Heroku because they offer it as an add-on. LogDNA will be used for tracking logs which are not errors and is also a Heroku add-on. Its good to have a separate service to record logs, monitor, track and even fix errors in real-time so our application can run more smoothly.

See more
Pros of Cypress
Pros of Enzyme
Pros of Jest
  • 21
    Open source
  • 16
    Great documentation
  • 14
    Fast
  • 14
    Simple usage
  • 8
    Easy us with CI
  • 8
    Cross Browser testing
  • 4
    Npm install cypress only
    Be the first to leave a pro
    • 33
      Open source
    • 29
      Mock by default makes testing much simpler
    • 21
      Testing React Native Apps
    • 18
      Parallel test running
    • 14
      Fast
    • 12
      Bundled with JSDOM to enable DOM testing
    • 7
      Mock by default screws up your classes, breaking tests
    • 7
      Out of the box code coverage
    • 6
      Promise support
    • 6
      One stop shop for unit testing
    • 3
      Great documentation
    • 1
      Assert Library Included
    • 1
      Built in watch option with interactive filtering menu
    • 0
      Can be used for BDD

    Sign up to add or upvote prosMake informed product decisions

    Cons of Cypress
    Cons of Enzyme
    Cons of Jest
    • 13
      Cypress is weak at cross-browser testing
    • 9
      Switch tabs : Cypress can'nt support
    • 7
      No file upload support
    • 7
      No iFrame support
    • 7
      No page object support
    • 7
      No xPath support
    • 7
      No multiple domain support
    • 6
      No support for multiple tab control
    • 6
      Re-run failed tests retries not supported yet
    • 6
      Cypress doesn't support native app
    • 5
      No support for Safari
    • 5
      No support for multiple browser control
    • 3
      Adobe
    • 3
      Not freeware
    • 3
      $20/user/thread for reports
    • 2
      No 'WD wire protocol' support
    • 2
      Using a non-standard automation protocol
      Be the first to leave a con
      • 2
        Many bugs still not fixed months/years after reporting
      • 2
        Multiple error messages for same error
      • 1
        Bugged
      • 1
        Unstable
      • 1
        Bad docs
      • 1
        Ambiguous
      • 1
        Difficult
      • 1
        Still does't support .mjs files natively
      • 1
        Can't fail beforeAll to abort tests
      • 1
        Difficult to run single test/describe/file
      • 1
        Documentation
      • 1
        Ambiguous configuration
      • 0
        Interaction with watch mode on terminal
      • 0
        BeforeAll timing out makes all passing tests fail

      Sign up to add or upvote consMake informed product decisions

      What is 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.

      What is Enzyme?

      Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.

      What is Jest?

      Jest provides you with multiple layers on top of Jasmine.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Cypress?
      What companies use Enzyme?
      What companies use Jest?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Cypress?
      What tools integrate with Enzyme?
      What tools integrate with Jest?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to Cypress, Enzyme, and Jest?
      Selenium
      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.
      TestCafe
      It is a pure node.js end-to-end solution for testing web apps. It takes care of all the stages: starting browsers, running tests, gathering test results and generating reports.
      Puppeteer
      Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.
      WebdriverIO
      WebdriverIO lets you control a browser or a mobile application with just a few lines of code. Your test code will look simple, concise and easy to read.
      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
      Interest over time
      News about Cypress
      More news
      News about Enzyme
      More news