Skip to main content

Setting up Cypress

Install cypress as dev dependency:

npm install --save-dev cypress

Launch cypress:

npx cypress open

Follow cypress wizard to initialize end-to-end testing.

If it is a TypeScript project, add a tsconfig.json file under the cypress folder with content:

{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}