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
Let me also add that nyc works perfectly regardless of where it is executed - i.e. replace c8 with nyc in the showcased shell commands and the report is perfect in both case. We educated all our developers too execute coverage as soon as possible and on local tests, and unfortunately c8 not supporting this pattern means that we can't migrate to it from nyc.
Hopefully this is solvable.
The text was updated successfully, but these errors were encountered:
Consider the following project:
src/index.ts
test/index.ts
Depending on where
c8
is executed, the result is quite different:Executed from the root of the project
Executed from the place where the test file is (i.e.
test/
)For information - and maybe it can help - here is the
.nycrc.json
that I use:Let me also add that
nyc
works perfectly regardless of where it is executed - i.e. replacec8
withnyc
in the showcased shell commands and the report is perfect in both case. We educated all our developers too execute coverage as soon as possible and on local tests, and unfortunatelyc8
not supporting this pattern means that we can't migrate to it fromnyc
.Hopefully this is solvable.
The text was updated successfully, but these errors were encountered: