Install Cypress 10 from scratch

Cypress is a next-generation front-end testing tool built for the modern web.

Cypress makes it possible to:

Requierements:

Installation steps:

  1. Create a new folder and name it whatever you want. ie: “cy10”
  2. Open the folder on your preferred code editor.
  3. Start a terminal inside that blank folder
  4. Run the following commands:

5. Open the “package.json” file and add the following line into Scripts:

6. Now, run the following command on your terminal to open Cypress for the first time:

7. Cypress will open in a new window, click on the ‘E2E Testing’ card and follow the steps:

8. Finish the setup on Cypress, you’ll notice that your folder structure will be something similar to this:

9. Cypress runner ready to be used:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store