serverless-stack-demo-api
serverless-stack-demo-api copied to clipboard
SecurityError: localStorage is not available for opaque origins
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"
},
Oh which version of Jest were you using?