FlawFull
FlawFull

Reputation: 157

Cypress folder not generating package v10.3.0

The cypress folder isn't generating, I've tried npx cypress open, ./node_modules/.bin/cypress open and it's still not generating. Also uninstalled and reinstalled cypress multiple times, clearing the cypress folder in %appdata% every time, but it still won't generate. Any ideas?

Folder structure

This is all that generates

Upvotes: 2

Views: 3203

Answers (1)

Alapan Das
Alapan Das

Reputation: 18650

  1. You have to first initialise the project using npm init.

  2. Then install cypress using npm install cypress, as of the today the current version is 10.3.0, that should be installed.

  3. Then You have to run the command npx cypress open, then you should see a window like this:

test runner

  1. Click on E2E Testing and then cypress will give you a bunch of default configs that it's gonna add.

config files

  1. Click on Continue button, you should get the Browser selection page.

choose a browser

  1. Click on Start E2E testing in Chrome and you get Create your first spec page.

enter image description here

  1. Click on Scaffold Example Specs and then Okay, I got it. This will add all the example specs to your e2e folder.

test runner with specs

  1. After this you should see all the required files and cypress folder is created:

enter image description here

Upvotes: 6

Related Questions