swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.72k stars 71 forks source link

Add externalHelpers:true for jest #673

Closed stefee closed 1 year ago

stefee commented 1 year ago

Helper functions will show up in jest test coverage as uncovered lines.

I'm opening this PR because it was a quick change to propose, but there may be valid reasons not to do this.

Let me know if you'd like a reproduction of the issue, and happy to discuss further.

stefee commented 1 year ago

Relevant https://github.com/swc-project/swc/issues/3854