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 & Frameworks
and selectJavascript
- Click on
Libraries
under it - Click
Download
button and selectTypeScript comminity stubs
option from the drop down. - After that use search to find
jasmine
package. ( just start typing and it will find it for you) - Click
Download and Install
button 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.