-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 #6769
Comments
I see this also |
related to jsdom/jsdom#2304 You can set the
|
Ok. The fix is to set testURL: "http://localhost/" in jest config. |
Duplicate: #6766 |
For anyone just starting to use Jest and running into this error, this is how you define a Jest configuration: https://jestjs.io/docs/en/configuration.html |
Related to: - jestjs/jest#6769 - jsdom/jsdom#2304
Update: setting testURL works. I had a different problem, with my babelrc.
|
Related to: - jestjs/jest#6769 - jsdom/jsdom#2304
Fixes issue with local storage on CI. Related to jestjs/jest#6769
…tead of having security issues (see √=jestjs/jest#6769). Added first test - simple mock/expectation test to enemyService.test.js
* [Redirect] don't import entire history module * fix jest config (jestjs/jest#6769) * fix jest config (jestjs/jest#6769) * fix jest config (jestjs/jest#6769) * fix jest config (jestjs/jest#6769)
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
[util] Set testURL for Jest to avoid jestjs/jest#6769 [validation] Set testURL for Jest to avoid jestjs/jest#6769 [schema] Set testURL for Jest to avoid jestjs/jest#6769 [export] Set testURL for Jest to avoid jestjs/jest#6769
yarn upgrade-interactive --latest (and accept all green updates) This also necessitated a fix for a Jest/JSDom issue jestjs/jest#6769 jsdom/jsdom#2304
yarn upgrade-interactive --latest (and accept all green updates) This also necessitated a fix for a Jest/JSDom issue jestjs/jest#6769 jsdom/jsdom#2304
yarn upgrade-interactive --latest (and accept all green updates) This also necessitated a fix for a Jest/JSDom issue jestjs/jest#6769 jsdom/jsdom#2304
Ya it solve my issue |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Hi guys!
I've made setup without create-react-app and when I try to run tests I got error:
Test is very simple :
it('first test', () => {
expect(123).toBe(123)
})
Expected behavior
I'd like to be able to pass my tests
The text was updated successfully, but these errors were encountered: