esbuild-jest
esbuild-jest copied to clipboard
Incorrect Jest coverage
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:
@dfantonio adding sourcemap: true
to esbuild-jest options fixes coverage for me
@wit1312 Thanks for the good information! Fixed!