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
I would expect c8's coverage reports to show something less than 100%, given that my "tests" in src/index.test.ts don't execute the subtract function from index.ts. However, they still report 100% coverage, and don't capture the fact that the code has multiple lines (this is the coverage shown by coverage/index.ts.html after running npm test in the reproduction):
I acknowledge that this issue is very similar to #433. However, it still reproduces on the latest version of tsx, so I felt it best to open a new issue. I based my reproduction on the one from that issue, but stripped it down to be as minimal as possible.
This is reproducible on Node 18, Node 20, and Node 22 (I tried all via nvm use ...).
Bugs are expected to be fixed by those affected by it
I'm interested in working on this issue
Compensating engineering work financially will speed up resolution
I'm willing to offer financial support
The text was updated successfully, but these errors were encountered:
I might have opened this prematurely, sorry! I saw https://github.com/pvtnbr/tsx/pull/16 in the development repo, and the bot comment said it was available in 4.9.4-rc.1, so I assumed that the latest version (4.10.3) would contain those changes since it was after 4.9.4-rc.1. However, looking at the relevant line on master, it seems like this changes haven't made it back to this repo yet:
Acknowledgements
Minimal reproduction URL
https://github.com/nwalters512/tsx-c8-coverage-repro
Problem & expected behavior (under 200 words)
I would expect c8's coverage reports to show something less than 100%, given that my "tests" in
src/index.test.ts
don't execute thesubtract
function fromindex.ts
. However, they still report 100% coverage, and don't capture the fact that the code has multiple lines (this is the coverage shown bycoverage/index.ts.html
after runningnpm test
in the reproduction):I acknowledge that this issue is very similar to #433. However, it still reproduces on the latest version of
tsx
, so I felt it best to open a new issue. I based my reproduction on the one from that issue, but stripped it down to be as minimal as possible.This is reproducible on Node 18, Node 20, and Node 22 (I tried all via
nvm use ...
).Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: