How to make IDEA recognise keywords from Jasmine Node.js package? -


i've got idea 14.1.2 project using jasmine node module testing. unfortunately idea doesn't recognise jasmine function names beforeeach, describe, it , expect, though seems valid (the tests run fine). is, when hovering on of these message "unresolved function or method function_name()", , when ctrl-clicking message "cannot find declaration go to".

relevant settings:

  1. in languages & frameworks → javascript → libraries following checked:
    • node.js v0.12.2 core modules (type global)
    • html (type predefined)
    • html5 / ecmascript 5 (type predefined)
    • node.js globals (type predefined)
  2. in languages & frameworks → node.js , npm (nodejs jetbrains plugin 141.712):

    • the node interpreter set (it's in subdirectory of project),
    • "node.js v0.12.2 core modules set up", and
    • under packages "jasmine" listed version 2.2.1 (latest).

maybe need index internal node modules, don't have relevant check box in languages & frameworks → node.js , npm. not available in version of plugin?

i've tried invalidating caches , restarting.

you need add typescript definition file described here.

go project settings > languages & frameworks > javascript > libraries, click download, select typescript community stubs combobox, choose jasmine , click download , install.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -