Do it once:
- download and install Node.js, version: 14.20.x
or
-
install Node.js with Node.js Version Manager.
Using
nvm(Node.js Version Manager) makes it easier to install and manage multiple versions of Node.js on a single local environment.To install a specific version of node:
nvm install 14.20
- Install packages that project depends on:
npm installandnpm run install_pretty_quick - Run application locally:
ng serveornpm run start
Run npm run lint static analyzer to ensure the source files are not violating Typescript or Cypress-framework specific coding rules.
Run npm run prettier for enforce consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
The test will by default attempt to connect to the application server running on http://localhost:4200.
The application server must be externally launched before running e2e-tests.
Run npm run cypress:run to execute tests non-interactively.
Run npm run cypress:open to execute or debug tests via Cypress graphical features.