With any Frontend application, End to End (e2e) testing can really improve maintenance and the Software Development Life Cycle (SDLC) of the application. E2E allows you to quickly verify changes, and also works to document features in your application.

There are a few options for E2E frameworks today. Cypress is one of the newer and more exciting options for building E2E tests in your application.

Cypress is a great option for E2E because it:

  1. Runs in the same event loop as your frontend project (rather than externally “knocking on the door” like E2E Selenium based projects do)
  2. Works with any Frontend project (install Cypress as a dependency and the test runner will automatically detect the corresponding configuration files)
  3. All of the E2E is written in JavaScript (no need to have .feature or other associated files)
  4. Cypress provides a hot reloading test runner allowing you to develop your tests in a very similar way to how you do local development already

#javascript #react

How to Use Cypress for E2E with React
1.30 GEEK