Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I check the version of Cypress I have installed via command line

I want to check the version I have of Cypress that is installed via the command line.

how do I check that I have tried Cypress verify and cypress version

like image 746
user3786941 Avatar asked Sep 01 '20 04:09

user3786941


People also ask

Is Cypress an npm package?

Cypress comes packaged as an npm module, which is all you need to get started testing. After installing you'll be able to: Open Cypress from the CLI.

How do I check the Cypress version?

You have to use command ./node_modules/.bin/cypress version to get the cypress version. Use Git-Bash/Cmd, type "npx cypress --version". It will give Cypress package version, Cypress binary version, Electron and Bundled Node version also.

How do I install and use Cypress?

To use Cypress, you will have install the desktop application on your computer. Here is a list of operating systems that Cypress supports. You can install Cypress via npm, to do this you have to cd into your project directory and run when you run this, it will install Cypress as a dev dependency for your project.

How do I open a cypress file from the command line?

#The long way with the full path $ ./node_modules/.bin/cypress open # shortcut using npm bin $ (npm bin)/cypress open #Using npx, note: npx is included with npm > v5.2 or can be installed separately. $ npx cypress open

How do I run a test in Cypress?

Cypress can launch using the "open" command with various package managers provided by Node. Cypress provides its default folder hierarchy, which makes the test development quick and easy. Moreover, Cypress uses Mocha's BDD constructs for the development of test cases. We can invoke Cypress methods using the "cy" object.


Video Answer


3 Answers

You have to use command ./node_modules/.bin/cypress version to get the cypress version.

like image 105
Alapan Das Avatar answered Oct 22 '22 18:10

Alapan Das


In the terminal type cypress -v or cypress --version

like image 25
I. Snyman Avatar answered Oct 22 '22 19:10

I. Snyman


In the project folder type:

npx cypress --version

like image 9
lourdes Avatar answered Oct 22 '22 18:10

lourdes