-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
DOMException.SECURITY_ERR with react router #1378
Comments
See #1372. |
@Sebmaster I confirm this fixes it: const jsdom = require('jsdom').jsdom
global.document = jsdom('<!doctype html><html><body><div id="app"></div></body></html>', {
url: 'http://localhost'
})
global.window = document.defaultView
global.navigator = global.window.navigator |
Just in case anyone was led here via the same stack trace I was: If you're using Jest, don't forget to add a testURL property to your Jest config. This fixed the issue for me 👍 |
@marlonicus would you mind updating that to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ref: remix-run/history#224
The text was updated successfully, but these errors were encountered: