Setup Your Cypress Dev Environment

InstructorBrett Cassette

Share this video with your friends

Send Tweet

Learn how to setup your Cypress development environment with Intellisense, custom Cypress configuration in cypress.json, and get settings autocompletion in VSCode.

Recommended Homework:

  • Setup your Cypress dev environment
Brad McAlister
~ 5 years ago

Several of the branches including '02-cypress-dev-enviroment' are stale and can't be checked out.

Bonsai
~ 5 years ago

I have an example cypress typescript environment I've set-up available here:

https://github.com/omerose/cypress-support

Oscar Lagatta
~ 5 years ago

How do you run on windows ? I am getting the following error [api] [frontend] 'PORT' is not recognized as an internal or external command, [frontend] operable program or batch file. [frontend] npm ERR! code ELIFECYCLE [frontend] npm ERR! errno 1 [frontend] npm ERR! todomvc@0.0.1 frontend: PORT=5000 REACT_APP_API_URL=http://localhost:3000 react-scripts start [frontend] npm ERR! Exit status 1 [frontend] npm ERR! [frontend] npm ERR! Failed at the todomvc@0.0.1 frontend script. [frontend] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [frontend] [frontend] npm ERR! A complete log of this run can be found in: [frontend] npm ERR! C:\Users\oscar.lagatta\AppData\Roaming\npm-cache_logs\2019-06-18T10_32_35_082Z-debug.log [frontend] npm run frontend exited with code 1

Oscar Lagatta
~ 5 years ago

changed the script as follows for windows and worked "frontend": "set PORT=5000 && react-scripts start",

pablo
~ 5 years ago

At transcript on cypress.json section have a typo, the key of the json should be 'baseUrl' but now is 'baseURL' with the URL in uppercase, can you guys fix that? thanks

Arlene Andrews
~ 4 years ago

Hello, there! I'm Arlene, a Learner Advocate, and a tester-in-training. With the new release of Cypress 4.9, I've taken on making notes, adding learner notes, and updating the transcript so it can be more useful to the community.

Than you all for your comments thus far - I'm trying to make sure that all of these issues are covered, and have the 4.9 updates.