pkgs icon indicating copy to clipboard operation
pkgs copied to clipboard

@swc/jest creates an incorrect coverage report

Open hheimerd opened this issue 1 year ago • 0 comments

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

hheimerd avatar Mar 26 '24 13:03 hheimerd