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

Commit 7f844fd

Browse files
committed
feat: add code coverage plugin to CRA v3 support, closes #133
1 parent 726be3a commit 7f844fd

File tree

5 files changed

+1584
-342
lines changed

5 files changed

+1584
-342
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ How can we use features that require transpilation? By using [@cypress/webpack-p
148148

149149
## Code coverage
150150

151-
If you are using [plugins/cra-v3](plugins/cra-v3) it instruments the code on the fly using `babel-plugin-istanbul`. If you want to disable the instrumentation, use `--env coverage=false` or `CYPRESS_coverage=false` or set in your `cypress.json` file
151+
If you are using [plugins/cra-v3](plugins/cra-v3) it instruments the code on the fly using `babel-plugin-istanbul` and generates report using dependency [cypress-io/code-coverage](https://github.com/cypress-io/code-coverage) (included). If you want to disable code coverage instrumentation and reporting, use `--env coverage=false` or `CYPRESS_coverage=false` or set in your `cypress.json` file
152152

153153
```json
154154
{
@@ -158,8 +158,6 @@ If you are using [plugins/cra-v3](plugins/cra-v3) it instruments the code on the
158158
}
159159
```
160160

161-
Works really well with coverage reporting done by plugin [cypress-io/code-coverage](https://github.com/cypress-io/code-coverage).
162-
163161
### Create React App users
164162

165163
If you are using Create-React-App v3 or `react-scripts`, and want to reuse the built in webpack before ejecting, this module ships with Cypress preprocessor in [plugins](plugins) folder. From the `cypress.json` point at the shipped plugin in the `node_modules`.

0 commit comments

Comments
 (0)