0

First time to use Angular.js - started a few days ago. I got set up using the gulp angular yeoman generator.

In WebStorm, my specs are showing unknown symbols: it, describe are unknown, as well as assertions like toEqual

However, tests run ok using gulp from the cmd-line.

enter image description here

How can I tell tell WebStorm where to find these symbols?

Jasper Blues
  • 28,258
  • 22
  • 102
  • 185

1 Answers1

1

The WebStorm should have picked up all you dependencies from your bower file automatically. Did yeoman generate bower.json file for you?

In any case, you can add additional library support in WebStorm (docs). Go to:

  • Windows & Linux: File | Settings | Languages and Frameworks | JavaScript | Libraries
  • OSX: WebStorm | Preferences | Languages and Frameworks | JavaScript | Libraries

and add jasmine or karma-jasmine there. Also, see this SO answers.

Community
  • 1
  • 1
Uzbekjon
  • 11,655
  • 3
  • 37
  • 54
  • I can see Jasmine in node modules, but not in bower_components. Perhaps the gulp file is using the one from node modules directory. This is all very new to me. Thank you. – Jasper Blues Apr 08 '16 at 03:13