Add the library @types/jest globally via: File > Settings > Languages & Frameworks > JavaScript > Libraries
Webstorm config