Open dfantonio opened 2 years ago
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.
esbuild-jest
With esbuild-jest:
With babel:
@dfantonio adding sourcemap: true to esbuild-jest options fixes coverage for me
sourcemap: true
@wit1312 Thanks for the good information! Fixed!
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: