pkgs
pkgs copied to clipboard
@swc/jest creates an incorrect coverage report
I set up the project as described in the instructions, but the jest coverage is generated incorrectly:
- Arrow functions that return jsx with specified pops without curly brackets are not included in the coverage.
- imports are included in the coverage
- 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
P.S. if you set sourceMaps to true, the internal functions will be included in the report, which is also strange