Adding Jasmine autocomplete to Intellij IDEA
So, recently i started to learn Javascript and for unit testing i took Karma + Jasmine. But i faced with one problem - in Intellij IDEA there was no autocomplete for Jasmine and all functions were marked as non-existing ones. After some googling i finally managed to find the solution. Here's what you need to do :
- Open
Preferences - Go to
Languages & Frameworksand selectJavascript - Click on
Librariesunder it - Click
Downloadbutton and selectTypeScript comminity stubsoption from the drop down. - After that use search to find
jasminepackage. ( just start typing and it will find it for you) - Click
Download and Installbutton and you're all set.
After that just save your changes and your jasmine code will be recognised by IDEA without any problem.
Happy coding.