当我想使用命令运行项目时npm run test
,出现以下错误。是什么原因造成的?
FAIL
● 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>)
jest
配置中是否有问题:-)
http://localhost:port...
?