Skip to content
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

"exclude" field in .nycrc.json no longer works #612

Closed
jaydenseric opened this issue Nov 12, 2019 · 5 comments
Closed

"exclude" field in .nycrc.json no longer works #612

jaydenseric opened this issue Nov 12, 2019 · 5 comments

Comments

@jaydenseric
Copy link

jaydenseric commented Nov 12, 2019

The exclude field in .nycrc.json no longer works. I'm guessing a recent tap release started adding some defaults, causing the config file field to be ignored.

Ideally the defaults would augment, and not replace, user config.

jaydenseric added a commit to jaydenseric/graphql-upload that referenced this issue Nov 12, 2019
@coreyfarrell
Copy link
Member

nyc doesn't have an excludes option, it's exclude.

@jaydenseric jaydenseric changed the title "excludes" field in .nycrc.json no longer works "exclude" field in .nycrc.json no longer works Nov 12, 2019
@jaydenseric
Copy link
Author

@coreyfarrell thanks, I did a typo and meant to say exclude; I was in fact using the right one:

jaydenseric/graphql-upload@0f92002#diff-ef814fc9852f9384bea581fd0673977dL2

@isaacs
Copy link
Member

isaacs commented Nov 16, 2019

Yeah, tap started explicitly excluding all test files from coverage, since that's almost never what you want (and it led to some weird bad behavior in some cases).

I've been chatting with @coreyfarrell about better ways to structure the tap/nyc integration. It's a bit of weird interface boundary right now, and I think there are a few small improvements we could make on either side to avoid issues like this.

jaydenseric added a commit to jaydenseric/graphql-upload that referenced this issue Nov 18, 2019
jaydenseric added a commit to jaydenseric/graphql-upload that referenced this issue Nov 18, 2019
@goto-bus-stop
Copy link
Contributor

We ended up using "tap"."nyc-arg" instead of "nyc" here: clinicjs/node-clinic-flame@8adf4c4

krasivyy3954 added a commit to krasivyy3954/react-graphql-upload that referenced this issue Jan 6, 2023
krasivyy3954 added a commit to krasivyy3954/react-graphql-upload that referenced this issue Jan 6, 2023
@isaacs
Copy link
Member

isaacs commented Sep 3, 2023

Nyc no longer used in tap 18. Check it out with npm i tap@pre. https://node-tap.org/changelog/#18.0

@isaacs isaacs closed this as completed Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants