Skip to content
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

Add testURL to jest config #1120

Merged
merged 1 commit into from
Dec 5, 2016
Merged

Add testURL to jest config #1120

merged 1 commit into from
Dec 5, 2016

Commits on Nov 30, 2016

  1. Add testURL to jest config

    In my tests, jsdom was throwing a "SecurityError" at HistoryImpl._sharedPushAndReplaceState (node_modules/react-scripts/node_modules/jsdom/lib/jsdom/living/window/History-impl.js:87:15)
    
    This happens because document.URL defaults to "about:blank". Unfortunately, if you interact with the History object it tries and fails to parse the URL, causing a "SecurityError" to be thrown. Setting the default URL to "http://localhost" fixes this issue.
    spudly committed Nov 30, 2016
    Configuration menu
    Copy the full SHA
    4c6fb1e View commit details
    Browse the repository at this point in the history