The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Introduction to Karma

Introduction to Karma

2:45
A quick tutorial covering installing Karma and running tests from the command line and Webstorm.
Watch this lesson now
Avatar
egghead.io

A quick tutorial covering installing Karma and running tests from the command line and Webstorm.

Avatar
Mike

For some reason, when adding the karma-jasmine library globally (as to get auto complete working) it doesn't seem to recognize library as the 'describe' , 'it' , 'beforeEach' etc commands are still underlined (not recognized)

I am using with PHPStorm 7.1.1 (doubt it is related to PHPStorm but never know)

In reply to egghead.io
Avatar
Rob Murtha

I found the same issue and installed the standalone jasmine 1.3.1 and referenced it as a global library. Take a look at the jasmine source code right at 2:11 in the video it matches the jasmine 1.3.1 source.

In reply to Mike
Avatar
Andreas

I had to add a plugin section to the config file to get rid of the manual interaction with the browser.

plugins : [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine'
]

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?