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
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,9 +181,20 @@ You can specify custom coverage reporter(s) to use. For example to output text s
181
181
182
182
**Tip:** find list of reporters [here](https://istanbul.js.org/docs/advanced/alternative-reporters/)
183
183
184
+
## NYC
185
+
186
+
This module tries to find the `nyc` tool using [bin-up][bin-up], so it would be found in the current `node_modules/.bin` or folders up the parent chain
187
+
188
+
```text
189
+
node_modules/.bin/
190
+
../node_modules/.bin/
191
+
../../node_modules/.bin/
192
+
etc
193
+
```
194
+
184
195
## Custom NYC command
185
196
186
-
Sometimes NYC tool might be installed in a different folder, or you might want to customize the report command. In that case, put the custom command into `package.json` in the current folder and this plugin will automatically use it.
197
+
Sometimes NYC tool might be installed in a different folder not in the current or parent folder, or you might want to customize the report command. In that case, put the custom command into `package.json` in the current folder and this plugin will automatically use it.
187
198
188
199
```json
189
200
{
@@ -209,7 +220,7 @@ The simplest solution: let `npx` install `nyc` on the fly
209
220
210
221
### Find NYC in a parent folder
211
222
212
-
If you have [bin-up](https://github.com/bahmutov/bin-up) installed globally, you can use it to find `nyc` installed somewhere in the higher folder.
223
+
If you have [bin-up][bin-up] installed globally, you can use it to find `nyc` installed somewhere in the higher folder.
213
224
214
225
```json
215
226
{
@@ -381,3 +392,4 @@ This project is licensed under the terms of the [MIT license](LICENSE.md).
0 commit comments