-
-
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
Support turning off node_modules default exclude via flag #912
Support turning off node_modules default exclude via flag #912
Conversation
@leslc @hershmire I'm open to this pull request, and your patches across the various Istanbul libraries are wonderful... please help me better understand why you're running unit tests inside the tldr; I'd love to better understand what motivated this pattern (partially as a product manager at npm, Inc, more so than a maintainer of nyc). |
@bcoe This issue I wrote up back in August might answer some of your questions – https://github.com/istanbuljs/nyc/issues/898. |
@bcoe Any update? |
@hershmire I'm sorry for the late reply & if what I say next might be frustrating to you: If the to anyone: please correct me if I'm wrong. |
@JaKXz @hershmire I would love to add better semantics for including |
It's possible for `config.excludeNodeModules` to be undefined, this is viewed by testExclude as 'not true'.
2 similar comments
@hershmire Sorry for the long delay on this, my intent is that this feature will be available in nyc 14. @bcoe this feature is already added to @AndrewFinlay we will want to add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM with @coreyfarrell's approval.
This PR is part of resolving issue #898. The idea is to be able to turn off the default exclusion of
**/node_modules/**
for users that need/want to support localnode_modules
. As mentioned in that issue, thenegateExclude
(i.e.!**/node_modules/**
) doesn't work for cases when you still want your exclusion list to still exclude matches within your localnode_modules
directory.Related PRs for solving the above issue:
NOTE: this test-exclude PR (istanbuljs/istanbuljs#213) will need to get merged and published before this is effective.