Webstorm says Promise is an unresolved type

Using WebStorm 10.0

I am currently studying Node Js and installing the entire component that should work. So I decided to use Jest to test my work, I already installed Jest for my frameworks and languages ​​inside WebStorm, but it shows Promise as an unresolved type , how can I fix it in WebStorm?

unauthorized type

enter image description here

+6
source share
1 answer

The promise type is not part of the Jest module; try to enable the " ECMAScript 6 " library for your project in Settings | Languages & Frameworks | JavaScript | Libraries Settings | Languages & Frameworks | JavaScript | Libraries Settings | Languages & Frameworks | JavaScript | Libraries If it is not available in your version (it exists since WebStorm 11), try downloading typescript stubs for the << 22> library (prom.d.ts)

+12
source

All Articles