You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in angular.json
$ ng new foo
$ cd foo
$ npm install karma-jsdom-launcher jsdom
$ sed -i 's/Chrome/jsdom/g' src/karma.conf.js
$ sed -i 's/chrome/jsdom/g' src/karma.conf.js
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 like source-map-support does will create a deadlock and halt execution indefinitely.
🐞 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-supportplugin. It can now however seem like this plugin is mistakenly always included.Even though I specify
"sourceMap": falseinangular.jsonConfig is normalized
sourceMapoption is further normalizedNormalization of
sourceMapalways ends up with an objectsource-map-supportis conditionally included, but the condition is always true🔬 Minimal Reproduction
Then run
ng testand 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
jsdomto be used as a target browser. Making synchronous requests likesource-map-supportdoes will create a deadlock and halt execution indefinitely.🌍 Your Environment