You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using esbuild-jest to transpile ts to commonjs and running jest --coverage certain branches are shown as not covered. Using babel to transpile and run the tests shows the correct coverage.
With esbuild-jest:
With babel:
The text was updated successfully, but these errors were encountered:
This originally came out of some code formatting causing a decrease in
code coverage. Rather than bypass the nuissance, I decided to find some
lines that were missed and test them. I discovered however that jest's
coverage report (at least for `test-support`) shows the wrong line
numbers. This appears to be an issue with `esbuild-jest`[0] so I suspect
other packages will need their Jest configs updated as well even though
the use case is pretty small.
[0]: aelbore/esbuild-jest#79
When using
esbuild-jest
to transpile ts to commonjs and running jest --coverage certain branches are shown as not covered. Using babel to transpile and run the tests shows the correct coverage.With esbuild-jest:
With babel:
The text was updated successfully, but these errors were encountered: