I\'ve come up against this issue Invalid URL is thrown when requiring systemjs in jest test cases
One of the last comments suggests
\"manipulate the jsdom instan
jsdom is the default environment that the latest version of Jest uses, so you can simply manipulate the global variables such as window, document or location.
window
document
location