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 am maintaining some legacy code that uses lodash templating. When code coverage gets calculated, the following error is thrown repeatedly:
TypeError: Invalid URL
at new URL (node:internal/url:775:36)
at v8ToIstanbul (/var/jenkins_home/workspace/(redacted)/node_modules/@web/test-runner-coverage-v8/dist/index.js:52:21)
....
Debugging this shows that the value of entry.url is the string "lodash.templateSources[0]" for these errors.
I believe the best resolution of this is to skip all invalid URLs after checking them via URL.canParse.
The text was updated successfully, but these errors were encountered:
I am maintaining some legacy code that uses lodash templating. When code coverage gets calculated, the following error is thrown repeatedly:
Debugging this shows that the value of entry.url is the string "lodash.templateSources[0]" for these errors.
I believe the best resolution of this is to skip all invalid URLs after checking them via
URL.canParse
.The text was updated successfully, but these errors were encountered: