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

Commit 5f4856c

Browse files
committed
feat: include code-coverage plugin for react-scripts
1 parent c379d01 commit 5f4856c

File tree

5 files changed

+1564
-371
lines changed

5 files changed

+1564
-371
lines changed

README.md

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

136136
## Code coverage
137137

138-
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
138+
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
139139

140140
```json
141141
{
@@ -145,8 +145,6 @@ If you are using [plugins/cra-v3](plugins/cra-v3) it instruments the code on the
145145
}
146146
```
147147

148-
Works really well with coverage reporting done by plugin [cypress-io/code-coverage](https://github.com/cypress-io/code-coverage).
149-
150148
### Create React App users
151149

152150
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)