You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -152,10 +154,7 @@ You can specify custom coverage reporter(s) to use. For example to output text s
152
154
{
153
155
"nyc": {
154
156
"report-dir": "cypress-coverage",
155
-
"reporter": [
156
-
"text",
157
-
"json"
158
-
]
157
+
"reporter": ["text", "json"]
159
158
}
160
159
}
161
160
```
@@ -214,10 +213,11 @@ Or a particular `switch` case
214
213
215
214
```js
216
215
switch (foo) {
217
-
case1: /* some code */; break;
216
+
case1/* some code */:
217
+
break
218
218
/* istanbul ignore next */
219
219
case2: // really difficult to hit from tests
220
-
someCode();
220
+
someCode()
221
221
}
222
222
```
223
223
@@ -230,12 +230,8 @@ For example, if you want to only include files in the `app` folder, but exclude
230
230
```json
231
231
{
232
232
"nyc": {
233
-
"include": [
234
-
"app/**/*.js"
235
-
],
236
-
"exclude": [
237
-
"app/util.js"
238
-
]
233
+
"include": ["app/**/*.js"],
234
+
"exclude": ["app/util.js"]
239
235
}
240
236
}
241
237
```
@@ -274,8 +270,9 @@ npm run dev:no:coverage
274
270
-[rootstrap/react-redux-base](https://github.com/rootstrap/react-redux-base) shows an example with a realistic Webpack config. Instruments the source code using `babel-plugin-istanbul` during tests.
275
271
-[skylock/cypress-angular-coverage-example](https://github.com/skylock/cypress-angular-coverage-example) shows Angular 8 + TypeScript application with instrumentation done using [istanbul-instrumenter-loader](https://github.com/webpack-contrib/istanbul-instrumenter-loader).
276
272
-[bahmutov/testing-react](https://github.com/bahmutov/testing-react) shows how to get code coverage for a React application created using [CRA v3](https://github.com/facebook/create-react-app) without ejecting `react-scripts`.
277
-
-[bahmutov/next-and-cypress-example](https://github.com/bahmutov/next-and-cypress-example) shows how to get backend and fronend coverage for a [Next.js](https://nextjs.org) project. Uses [middleware/nextjs.js](middleware/nextjs.js).
273
+
-[bahmutov/next-and-cypress-example](https://github.com/bahmutov/next-and-cypress-example) shows how to get backend and frontend coverage for a [Next.js](https://nextjs.org) project. Uses [middleware/nextjs.js](middleware/nextjs.js).
278
274
-[akoidan/vue-webpack-typescript](https://github.com/akoidan/vue-webpack-typescript) Pure webpack config with vue + typescript with codecov reports. This setup uses babel-loader with TS checker as a separate thread.
275
+
-[bahmutov/code-coverage-subfolder-example](https://github.com/bahmutov/code-coverage-subfolder-example) shows how to instrument `app` folder using `nyc instrument` as a separate step before running E2E tests
0 commit comments