Exclude option ignored unless in nyc stanza of package.json
See original GitHub issueWhen using babel-plugin-istanbul
, it appears if the nyc configuration object is included in the nyc
stanza of package.json
, everything is fine. But when attempting to use the same options in .nycrc
or via the command-line, they are ignored (exclude
, in particular).
~Repro examples: https://github.com/wKovacs64/nyc-exclude-test~ (deleted)
Side note: in my real projects where I first ran into this, I require babel-register
with mocha as opposed to nyc. The nyc documentation does it in the nyc configuration, so that’s what I used in my reproduction cases, but it doesn’t appear to make a difference.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
istanbuljs/nyc - Gitter
@bcoe I'm able to reproduce some weirdness when using babel-plugin-istanbul where the nyc exclude option is being ignored in .nycrc and on the...
Read more >nyc - npm
You can tell nyc to exclude specific files and directories by adding an nyc.exclude array to your package.json . Each element of the...
Read more >How to exclude files from Istanbul nyc coverage report
Another important option is excludeAfterRemap. By default it is false, which might let excluded files through. If you are excluding the files, ...
Read more >NYC: The Istanbul Command Line interface - Morioh
If there are paths specified in the exclude array, then the set of instrumented files ... If nyc fails to find a directory...
Read more >How to ignore files from your npm package | Zell Liew
First, npm will check your repository for a .gitignore file. If there is a .gitignore file, npm will ignore files according to what's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wKovacs64 @321ckatz123 this is published to
latest
now 👍@bcoe, I understand how to get it now. I was more asking when is the next release (which I assume includes this) is going to get pushed?