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

Jest - fix "SecurityError: localStorage is not available for opaque origins" #4371

Merged
merged 1 commit into from
Jul 29, 2018

Commits on Jul 27, 2018

  1. Jest - fix "SecurityError: localStorage is not available for opaque o…

    …rigins"
    
    with jsDom 11.12, jest stars failing with
    
        Test suite failed to run
    
        SecurityError: localStorage is not available for opaque origins
    
          at Window.get localStorage [as localStorage] (node_modules/jsdom/lib/jsdom/browser/Window.js:257:15)
              at Array.forEach (<anonymous>)
    
    Looks like jsdom is just trying to follow the browser behaviour more closely, and without `testURL` jest defaults to assuming "about:blank"
    himdel committed Jul 27, 2018
    Configuration menu
    Copy the full SHA
    10e706f View commit details
    Browse the repository at this point in the history