First step:

npm install

to run the tests with the browser:

npm run-script cy:prod

to run the tests without the browser:

npm run-script cy-prod