Cypress聽vs聽Jest

Cypress
Cypress

623
689
+ 1
69
Jest
Jest

2.5K
1.8K
+ 1
151
Add tool

Cypress vs Jest: What are the differences?

What is Cypress? Better, faster, and more reliable testing for anything that runs in a browser. 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 Jest? Painless JavaScript Unit Testing. Jest provides you with multiple layers on top of Jasmine.

Cypress and Jest belong to "Javascript Testing Framework" category of the tech stack.

Some of the features offered by Cypress are:

  • Time Travel
  • Debuggability
  • Automatic Waiting

On the other hand, Jest provides the following key features:

  • Familiar Approach: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
  • Mock by Default: Automatically mocks CommonJS modules returned by require(), making most existing code testable
  • Short Feedback Loop: DOM APIs are mocked and tests run in parallel via a small node.js command line utility

"Open source" is the primary reason why developers consider Cypress over the competitors, whereas "Open source" was stated as the key factor in picking Jest.

Jest is an open source tool with 26.4K GitHub stars and 3.57K GitHub forks. Here's a link to Jest's open source repository on GitHub.

According to the StackShare community, Jest has a broader approval, being mentioned in 271 company stacks & 161 developers stacks; compared to Cypress, which is listed in 59 company stacks and 44 developer stacks.

Advice on Cypress and Jest
Yildiz Dila
Yildiz Dila
testmanager/automation tester at medicalservice | 5 upvotes 8K views
Needs advice
on
ProtractorProtractor
vs
CypressCypress

In the company I will be building test automation framework and my new company develops apps mainly using AngularJS/TypeScript. I was planning to build Protractor-Jasmine framework but a friend of mine told me about Cypress and heard that its users are very satisfied with it. I am trying to understand the capabilities of Cypress and as the final goal to differentiate these two tools. Can anyone advice me on this in a nutshell pls...

See more
Decisions about Cypress 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 Jest

Sign up to add or upvote prosMake informed product decisions

Cons of Cypress
Cons of Jest

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 Jest?

Jest provides you with multiple layers on top of Jasmine.
What companies use Cypress?
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 Jest?

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

What are some alternatives to Cypress 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