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

SecurityError: localStorage is not available for opaque origins #358

Closed
antidecaf opened this issue Aug 1, 2018 · 3 comments
Closed

SecurityError: localStorage is not available for opaque origins #358

antidecaf opened this issue Aug 1, 2018 · 3 comments

Comments

@antidecaf
Copy link
Contributor

A recent upgrade of JSDom (v. 11.12) includes support for window.localStorage and other features. This in turn causes all Jest tests to fail with:

SecurityError: localStorage is not available for opaque origins

For reference, see jestjs/jest#6766

@kwltrs
Copy link
Contributor

kwltrs commented Aug 1, 2018

Will be fixed in jest: jestjs/jest#6792

@ivarni
Copy link
Contributor

ivarni commented Aug 1, 2018

The workaround untill they do is to add the testUrl option

kwltrs added a commit that referenced this issue Aug 1, 2018
Adding this configuration option is a workaround for a jsdom/jest issue
(see #358) and can be dropped as soon the default configuration value in
jest is changed.

Relates to #358
@antidecaf
Copy link
Contributor Author

The fix has been released in jest 23.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants