How can I get WebStorm to recognize Jasmine methods?

You can use predefined JS library stubs in Webstorm/PHPStorm/Idea

  • Open File > Settings…
  • Select Languages & Frameworks > JavaScript > Libraries
  • Click on Download…

JavaScript Library settings

  • Swich to TypeScript community stubs
  • Find karma-jasmine (originally under the name jasmine) (If this does not work, try jasmine instead)
  • Click on Download and Install

enter image description here

I am using this setup with Jasmine 2.0

Leave a Comment