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

Closed
hheimerd opened this issue Mar 26, 2024 · 2 comments
Closed

@swc/jest creates an incorrect coverage report #32

hheimerd opened this issue Mar 26, 2024 · 2 comments
Assignees

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

@mateus4k
Copy link

mateus4k commented Jun 6, 2024

Hey, did you find any solution for this?

@kdy1 kdy1 self-assigned this Jun 7, 2024
@kdy1
Copy link
Member

kdy1 commented Jun 11, 2024

Duplicate of swc-project/swc#3854

@kdy1 kdy1 marked this as a duplicate of swc-project/swc#3854 Jun 11, 2024
@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
kdy1 added a commit that referenced this issue Oct 22, 2024
kdy1 added a commit that referenced this issue Oct 22, 2024
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

3 participants