We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting the following error when importing into ES6 tests like this import 'jsdom-global/register'.
import 'jsdom-global/register'
<project-root>/node_modules/whatwg-url/lib/URL-impl.js:19 throw new TypeError("Invalid URL"); TypeError: Invalid URL
Do you know why this could be?! Thanks
The text was updated successfully, but these errors were encountered:
The issue most likely comes from the fact the window location is not properly initiated. about:blank cannot be parsed as an URL.
about:blank
I fixed a similar issue by doing something like
window.location = { href: 'http://localhost' }
Sorry, something went wrong.
No branches or pull requests
I'm getting the following error when importing into ES6 tests like this
import 'jsdom-global/register'
.Do you know why this could be?! Thanks
The text was updated successfully, but these errors were encountered: