You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest Jest version v23.4.2 produces below error for recipe from 'debugging-jest-tests/'.
FAIL test/subtract.spec.js
● 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>)
It is because Jest assumes testEnvironment as JSDom by default.
Overriding default jest configuration in package.json fixes the error. (Tested on Node versions 8.5.0, 9.7.1 and 10.7.0 with Jest versions 20.0.4 and 23.4.2)
Pull request for Jest error - SecurityError: localStorage is not available for opaque origins microsoft#119
Please excuse any inconvenience I may have caused as I this is only my first commit on github public repository.
Latest Jest version v23.4.2 produces below error for recipe from 'debugging-jest-tests/'.
It is because Jest assumes testEnvironment as JSDom by default.
Overriding default jest configuration in package.json fixes the error. (Tested on Node versions 8.5.0, 9.7.1 and 10.7.0 with Jest versions 20.0.4 and 23.4.2)
Edit - First time Submitting a PR to fix this issue. Please review and guide me towards getting this PR accepted
The text was updated successfully, but these errors were encountered: