DEV Community

Discussion on: Dealing with Asynchrony when Writing End-To-End Tests with Puppeteer + Jest

Collapse
 
pierre profile image
Pierre-Henry Soria ✨

Great writing! Thx Albert 🙂

Collapse
 
aalises profile image
Albert Alises

Thank you! I have recently switched to Cypress (cypress.io/) which makes dealing with Asynchrony so much easier :)

Collapse
 
denisinvader profile image
Mikhail Panichev

I have experience with Jest and Unit tests for a UI Kit, but now I want to write e2e tests for an end-user application with SSR and SPA parts. I thought that I could just use Cypress, but after some research, I've started to doubt:

  • it doesn't have global setup/teardown API to start mock API server (needed for SSR) and the app itself;
  • it doesn't support regression testing officially and it couldn't be solved easily on the fly.

Now I think about using Jest with Puppeteer for e2e tests and something for screenshot diffs. I need to run my tests in GitlabCI at first.

What would you suggest? Is Cypress still better choice for me?