-
Notifications
You must be signed in to change notification settings - Fork 12k
Inability to avoid including source-map-support
in Karma tests
#13580
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
Comments
@badeball that's a pretty detailed investigation! As you mentioned in badeball/karma-jsdom-launcher#27 (comment), that really looks like it was introduced with #13062. Should be a trivial fix on our side. Sorry about that! |
Please take a look at #13584 to see if it matches your understanding of the problem. |
Can confirm, this corrects the issue. Thanks the quick response! |
I am also no longer able to use jsdom - waiting for this to merge. |
@vikerman We're still getting We have a different issue. They have no license file, which causes a compliance issue for us (yes, even for dev dep). There was an issue raised 14 months ago: tschaub/karma-source-map-support#16 There was a PR in September: tschaub/karma-source-map-support#22 We're a little worried the project might be inactive, and we were hoping that this issue would remove that dependency. |
#13584 wasn't meant to remove the dependency, just to not use it depending on the provided options. |
@filipesilva thanks for the quick response! Yeah we're seeing that's the case now. What's the best way to proceed? I'm not sure raising an issue or PR for Should I raise a new issue against angular-cli (or a different project?) to consider removing that as a hard dependency? In general, it'd be nice to not have that as a hard dependency because maybe we don't use Karma or sourcemaps in that way, and a project kicking around 'just coz' will likely cause issues. |
I'm sorry to say but we don't use a modular approach in But Realistically speaking this could happen. But I don't think it will happen on the timeframe you'd like it to happen. It's a fair bit of work and not a priority. So I think your best chance right now is to get the |
:grumble: Ok, thanks. We'll try and get his attention |
@filipesilva Looks like we succeeded - tschaub/karma-source-map-support#22 was merged. Thanks |
Awesome! Renovate bot has picked it up already #13623. Should go in the next major/minor version, which is 8.0 at this point. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
I suspect this is a regression introduced by #13062.
Description
I believe one used to be able to configure through angular.json such that Karma tests would not include the
karma-source-map-support
plugin. It can now however seem like this plugin is mistakenly always included.Even though I specify
"sourceMap": false
inangular.json
Config is normalized
sourceMap
option is further normalizedNormalization of
sourceMap
always ends up with an objectsource-map-support
is conditionally included, but the condition is always true🔬 Minimal Reproduction
Then run
ng test
and watch the process never exit.🔥 Exception or Error
I was made aware of this issue in badeball/karma-jsdom-launcher#27. Project of said issue aims to allow
jsdom
to be used as a target browser. Making synchronous requests likesource-map-support
does will create a deadlock and halt execution indefinitely.🌍 Your Environment
The text was updated successfully, but these errors were encountered: