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

All first lines uncovered when using c8 with tsx --test #564

Open
4 of 6 tasks
rozzilla opened this issue May 30, 2024 · 5 comments
Open
4 of 6 tasks

All first lines uncovered when using c8 with tsx --test #564

rozzilla opened this issue May 30, 2024 · 5 comments
Labels
blocked bug Something isn't working

Comments

@rozzilla
Copy link

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I am reporting a confirmed bug (not seek debugging help)
  • I understand this is a collaborative project and relies on my contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://github.com/rozzilla/c8-tsx-coverage-issue

Problem & expected behavior (under 200 words)

As you can see from the repro, even though I have a test covering the whole file, the coverage result return the 1st line as uncovered

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
@privatenumber
Copy link
Owner

privatenumber commented Jun 6, 2024

tsx is just using the Node APIs so I'm not sure if this is a bug in tsx or if there's even anything we can do on our end.

This may be related:
nodejs/node#53315

@rozzilla
Copy link
Author

rozzilla commented Jun 6, 2024 via email

@privatenumber
Copy link
Owner

privatenumber commented Jun 6, 2024

Not sure if I understand how that better explains the issue...

If you want to get to the bottom of this, I recommend inlining the sourcemap as a minimal reproduction and filing an issue with Node.

@rozzilla

This comment was marked as off-topic.

@privatenumber
Copy link
Owner

Locking as this seems blocked by Node. Feel free to open an issue there if it doesn't exist yet.

Repository owner locked and limited conversation to collaborators Jun 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants