Closed brettz9 closed 2 years ago
What's the difference between the two?
What's the difference between the two?
Mostly just the fact that nyc doesn't yet support ESM, and our project switched to ESM. In most other ways, it is just like nyc
.
Makes sense. I saw this change made here too: https://github.com/sindresorhus/eslint-plugin-unicorn/pull/1686
It looks like .gitignore
and .nycrc
need to be updated too.
Makes sense. I saw this change made here too: sindresorhus/eslint-plugin-unicorn#1686
It looks like
.gitignore
and.nycrc
need to be updated too.
No need for nycrc
as c8 supports these files too. And no additional folders need supporting for coverage. (And I think we should keep .nyc_output
in .gitignore
in case reverting back to nyc as we could do (or might need to do for some reason or other) in the future once the new version of nyc may support ESM.)
Thanks for the review!
Coverage has been broken since the ESM upgrade (we could add a threshold check to prevent such regressions, though noting that we're just shy of 100% due to https://github.com/eslint/espree/blob/main/lib/espree.js#L132 not being covered).