serverless-stack-demo-api icon indicating copy to clipboard operation
serverless-stack-demo-api copied to clipboard

SecurityError: localStorage is not available for opaque origins

Open rparcus opened this issue 7 years ago • 1 comments
trafficstars

I encountered this error when running yarn test in https://serverless-stack.com/chapters/unit-tests-in-serverless.html

Solved it by changing the script in package.json to

"scripts": {
    "test": "jest --env=node"
  },

rparcus avatar Aug 08 '18 17:08 rparcus

Oh which version of Jest were you using?

jayair avatar Aug 08 '18 19:08 jayair