Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 9adc673

Browse files
authored
Update README.md
Added info on why fork is necessary.
1 parent c297a24 commit 9adc673

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# FORK INFO
2+
The check for `window.__coverage__` only works if `cy.visit()`-ing between every test, since it is done in the `window:load` event in a `beforeEach()` hook. If a test spec does a single `cy.visit()` in a `before()` hook, the load event handler is not hit; if the `cy.visit()` happens in the first test only, coverage is collected for that test, but not for any others.
3+
14
# @cypress/code-coverage [![renovate-app badge][renovate-badge]][renovate-app] [![CircleCI](https://circleci.com/gh/cypress-io/code-coverage.svg?style=svg)](https://circleci.com/gh/cypress-io/code-coverage)
25

36
> Saves the code coverage collected during Cypress tests

0 commit comments

Comments
 (0)