barbar/vortigern

Test output not showing correct line numbers

toddwashere opened this issue · 0 comments

Whenever tests are run and there is an error, it reports the error at being within the transpiled/generated js file, instead of where the source file is (via source maps), example

some error message at /config/webpack/test.js:1748

But would be much more helpful to see something like:

some error message at /src/app/components/myComp.test.ts:23

This makes it difficult to track down any problems with tests.

I've tried setting "retainLines" to true for babel, and adding "sourcemap" to the karma preprocessors, but to no avail.

Is there a config setting that can be added to show the line numbers AND the file name of the source, when running tests?