Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test output not showing correct line numbers #164

Open
toddwashere opened this issue Jan 12, 2018 · 0 comments
Open

Test output not showing correct line numbers #164

toddwashere opened this issue Jan 12, 2018 · 0 comments

Comments

@toddwashere
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant