-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Globs are not working for $ istanbul instrument -x "**glob**" #596
Comments
bump pls |
@ORESoftware I think you're using the wrong executable, but you can configure Please share your repo or a sample reproduction with |
Thanks! I wonder why nyc didn't choose to stick with original CLI: before:
after?
maybe the --output/-o flag still works, whatever |
Unfortunately putting this in package.json doesn't work:
nyc still attempts to instrument the public/lib contents this is driving me INSANE bump bump escalate |
@ORESoftware could you please provide a link to a repository that is running into this issue? Here's a unit test we have for logic very similar to what you're attempting: We're not doing anything exciting with our If you are having trouble excluding |
Fix being worked on in #1007 |
I am trying to do this:
Here is the command I use:
istanbul instrument public --output public-coverage -x "public/lib/**/*"
Unfortunately, the public/lib directory still gets instrumented, which is a bummer because it contains a ton of files that are 3rd party libraries which I really do not want to instrument.
I have tried every glob combination under the sun and it's not working - the lib directory and its contents never get ignored, and they are always copied over to public-coverage and instrumented.
I consistently have problems with getting globs to behave as desired...it's not just this library. Not sure why that is, but maybe people should consider other ways of ignoring dirs, etc.
The text was updated successfully, but these errors were encountered: