Cypress Configurations: https://docs.cypress.io/guides/references/configuration.html
- cypress
npm i cypress --save-dev
- @cypress/code-coverage // to get code coverage with cypress
npm i -D @cypress/code-coverage
- nyc (istanbul) // to generate code for code coverage
npm install --save-dev nyc
npx serve -l 5001 instrumented
This will host the files in "./instrumented" folder on a port 5001. Url will be: http://localhost:5001
npx nyc instrument --compact=false src instrumented
npm run test:open
npm run test:run
npx nyc report --reporter=text-summary