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

Add a global config flag to disable sourcemap-support injection #469

Closed
kulshekhar opened this issue Mar 18, 2018 · 0 comments · Fixed by #470
Closed

Add a global config flag to disable sourcemap-support injection #469

kulshekhar opened this issue Mar 18, 2018 · 0 comments · Fixed by #470

Comments

@kulshekhar
Copy link
Owner

context: #340 (comment)

Think this is related: I'm currently having to hack the ts-jest module to disable the injection of the sourceMapSupport.install() hook to get correct correct line numbers in stack traces (ts-jest 22.4.1 + jest 22.4.2 + typescript 2.7.2, target:es2017, node 8.9.4)

.... I'm guessing that something else in the tree (jest/jasmine?) is already performing the source-map-support install hook now which doesn't play nice when it's called twice.

ts-jest seems to work fine and as expected without the injected code, so maybe it's just not needed anymore? either way it would be nice to be able to disable the sourceMapSupport injection via the global options.

from @chrisfarms

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

Successfully merging a pull request may close this issue.

1 participant