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

Setting up AVA for localstorage browser testing #2296

Closed
dzeso opened this issue Nov 20, 2019 · 1 comment
Closed

Setting up AVA for localstorage browser testing #2296

dzeso opened this issue Nov 20, 2019 · 1 comment

Comments

@dzeso
Copy link

dzeso commented Nov 20, 2019

Can you add some example how to test localstorage? After "Setting up AVA for browser testing" i have got "SecurityError: localStorage is not available for opaque origins". Jest configuration example did not help.

@dzeso dzeso changed the title Setting up JAVA for localstorage browser testing Setting up AVA for localstorage browser testing Nov 20, 2019
@novemberborn
Copy link
Member

Going by jsdom/jsdom#2304 (comment) and looking at the cautionary note in https://github.com/avajs/ava/blob/master/docs/recipes/browser-testing.md#install-browser-env I don't think this will work.

(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)

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

2 participants