Closed saylerb closed 6 years ago
A pull request would be welcome!
@kentcdodds I just noticed this issues appears in the fem-2018
branch, but not master
. Is that branch deprecated in favor of master
?
You can feel free to fix it in fem-2018. I want to avoid changing too much otherwise the course recording could be confusing, but this was a breaking change in jest that we should probably fix.
Environment info:
node
version (node --version
): 8.11.3npm
version (npm --version
): 6.2.0yarn
version (yarn --version
): 1.7.0jest
version (npx jest --version
): 22.4.4Problem description: On
fem-2018
branch. When I run the simple react tests, I get the errorSecurityError: localStorage is not available for opaque origins
.Commands run:
npm run setup
npm run react:test
Here is the output from running the test:
Suggested solution:
Doing some googling around, I found this thread: https://github.com/jsdom/jsdom/issues/2304 Adding a
testURL
tojest.config.js
seemed to fix the problem.Happy to open a PR for this, if this is something that is reproducible.