Add Cypress to an Existing Application with npm

Share this video with your friends

Send Tweet

Adding Cypress to a project is a simple npm install away. We won’t need any global dependencies beyond node and npm to get started with Cypress. In this lesson we’ll look at our existing application, add Cypress as a dev dependency with npm and fire it up for the first time to have a look around.

Dean
Dean
~ 6 years ago

Hey, under integration folder, I have folder called "examples", with about 25 files. Your example only has one file. Should we delete the whole folder or add the new test file to the folder?

Andy Van Slaars
Andy Van Slaars(instructor)
~ 6 years ago

The 3.0 release split the examples up to better align with the recommended best practices for Cypress. It’s fine to delete “examples” and just add tests to the integrations folder.