Skip to content

Files

Latest commit

288b61d · Apr 6, 2020

History

History
This branch is 294 commits behind cypress-io/code-coverage:master.

before-each-visit

example: before-each-visit

Code coverage example where the cy.visit happens in beforeEach hook

Code was instrumented with

npx nyc instrument --compact false main.js > main-instrumented.js

and then removed absolute folder paths, leaving just relative path main.js in the produced file.

The code uses custom coverage report command in package.json to call nyc