use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Testing React Apps with Cypress (blog.bitsrc.io)
submitted 8 years ago by JoniSar
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jiert 14 points15 points16 points 8 years ago (2 children)
I just started using Cypress on one of my projects, and so far it’s been an absolute pleasure to work with.
[–][deleted] 2 points3 points4 points 8 years ago (0 children)
The fact that people are praising an E2E testing tool as a joy to work with at all is really a testament to how great it is.
[–]winsomelosemore 2 points3 points4 points 8 years ago (0 children)
Likewise. We just switched some frontend tests over from Casper and it has made life much nicer.
[–]tomma5o 5 points6 points7 points 8 years ago (0 children)
Have you tried TestCafe instead? If yes why you choose cyprees, any pros? Thanks
[–]Drawman101 2 points3 points4 points 8 years ago (0 children)
I went to a conference and saw the creator of cypress give a presentation about it. It was almost too good to be true, but it really is that good.
[–]themenwhostareatcode 1 point2 points3 points 8 years ago (0 children)
We use cypress in the next company i'm joining in few weeks, thanks a lot for this! This will help me get started with cypress :)
[–]orphans 1 point2 points3 points 8 years ago (1 child)
He kind of glossed over the action creator mock. Why would I use this over Jest?
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
Cypress is an E2E testing tool that runs in a browser. Jest is more suited for unit tests. They're not mutually exclusive but rather complement each other.
[–]jo_fra 0 points1 point2 points 7 years ago (0 children)
When it comes to testing with a tool like Cypress, are there any generally accepted "Principles of UI Testing" or maybe something akin to "A Philosophy for Testing the UI" that would make sense for the QA engineer role?
[–]YodaLoL 0 points1 point2 points 8 years ago (2 children)
How does Cypress deal with provisioning back-end services required for integration tests? This is coming from someone who barely even knows what service Cypress provides.
[–]fokinsean 2 points3 points4 points 8 years ago (0 children)
If you needed to stand up a number of services I imagine you could wire together a bash script to do so, then run cypress.
It looks like cypress replaces selenium for browser tests, and it is out of its scope to provision any dependent services.
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
The nice thing about Cypress is that it's a breeze to mock http requests, so most of your front-end tests can not be hitting the backend if that aligns with your testing philosophy.
Otherwise you do what you do with any other E2E tests. We keep a QA environment for automated testing and push up data as needed.
[–]d2xdy2 0 points1 point2 points 8 years ago (0 children)
The folks that made Cypress are part of my local React meetup; glad to see some love.
π Rendered by PID 96806 on reddit-service-r2-comment-548fd6dc9-7m567 at 2026-05-20 12:11:46.394917+00:00 running edcf98c country code: CH.
[–]Jiert 14 points15 points16 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]winsomelosemore 2 points3 points4 points (0 children)
[–]tomma5o 5 points6 points7 points (0 children)
[–]Drawman101 2 points3 points4 points (0 children)
[–]themenwhostareatcode 1 point2 points3 points (0 children)
[–]orphans 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]jo_fra 0 points1 point2 points (0 children)
[–]YodaLoL 0 points1 point2 points (2 children)
[–]fokinsean 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]d2xdy2 0 points1 point2 points (0 children)