IssueRaiser

Incorrect Jest coverage

When using @swc/jest to transpile ts to commonjs and running `jest --coverage` certain branches are shown as not covered (console logging in these branches show that tests do run the code path). Using babel to transpile and run the tests shows the correct coverage.

Posted by stephane-arista on Sep 21, 2021, 9:40 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

Incorrect Jest coverage

stephane-aristaSep 21, 2021, 9:40 PM

When using @swc/jest to transpile ts to commonjs and running `jest --coverage` certain branches are shown as not covered (console logging in these branches show that tests do run the code path). Using babel to transpile and run the tests shows the correct coverage.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue