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
Copy file name to clipboardexpand all lines: README.md
+17-1
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,9 @@ improve runtime performance.
226
226
227
227
## Configuring `nyc`
228
228
229
-
Any configuration options that can be set via the command line can also be specified in the `nyc` stanza of your package.json (these will not affect `nyc` subcommands):
229
+
Any configuration options that can be set via the command line can also be specified in the `nyc` stanza of your package.json, or within a `.nycrc` file:
230
+
231
+
**package.json:**
230
232
231
233
```json
232
234
{
@@ -260,6 +262,20 @@ Any configuration options that can be set via the command line can also be speci
260
262
}
261
263
```
262
264
265
+
**.nycrc:**
266
+
267
+
```json
268
+
{
269
+
"reporter": [
270
+
"lcov",
271
+
"text-summary"
272
+
],
273
+
"require": [
274
+
"./test/helpers/some-helper.js"
275
+
]
276
+
}
277
+
```
278
+
263
279
## Instrumenting source files
264
280
265
281
nyc's `instrument` command can be used to instrument
0 commit comments