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

@swc/jest creates an incorrect coverage report #32

Open
hheimerd opened this issue Mar 26, 2024 · 0 comments
Open

@swc/jest creates an incorrect coverage report #32

hheimerd opened this issue Mar 26, 2024 · 0 comments

Comments

@hheimerd
Copy link

I set up the project as described in the instructions, but the jest coverage is generated incorrectly:

  1. Arrow functions that return jsx with specified pops without curly brackets are not included in the coverage.
  2. imports are included in the coverage
  3. exports are included in the coverage

I made a minimal case and included coverage files in the repository
https://github.com/hheimerd/swc-jest-report

Screenshot 2024-03-26 at 14 25 53

P.S. if you set sourceMaps to true, the internal functions will be included in the report, which is also strange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant