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
@XhmikosR for easy migration from old projects, I decided to support both .c8rc and .nycrc, for package configuration I think it was intentional that it supports only c8.
Activity
bcoe commentedon Dec 30, 2020
@marktyers you can provide a
.nycrc.jsonor a.c8.jsonconfiguration file. It accepts all the same keys accepted by the CLI:https://github.com/bcoe/c8/blob/master/.nycrc
Seems like an oversight that it's not documented.
bcoe commentedon Dec 30, 2020
Oh, I should also add, once you have this configuration file you can create a badge based on it:
https://shields.io/category/coverage
XhmikosR commentedon Feb 1, 2021
@bcoe .nycrc works, but it seems a package.json config key of
nycdoes not work (it works with nyc, though). Is that supposed to work too?EDIT:
it seems it works if I use
c8as the package.json key. I'm still not sure if it's a bug or not :)bcoe commentedon Feb 4, 2021
@XhmikosR for easy migration from old projects, I decided to support both
.c8rcand.nycrc, for package configuration I think it was intentional that it supports onlyc8.Sounds like you're unblocked?
XhmikosR commentedon Feb 4, 2021
Yeah. But this issue is still valid; there's no documentation about which config files are supported :)
SalahAdDin commentedon Jun 26, 2022
Yeah, it is not still documented, so, it is not clear.
Wambosa commentedon Jan 11, 2024
for future engineers who just want a tldr example json
old
package.json:translates to this config file (
/config/.c8rc):which makes us update our
package.jsoncommand to:ps love
c8, been using it for years. Thank y'all 🙏