How to get Karma-Jasmine test to load spechelper

I am new to webstorm, but in other environments Jasmine loads spechelper.js.  I can't seem to figure out how to get Jasmine to load it in webstorm.  I have placed the file is spec/SpecHelper.js but the test that uses the helper fails because it is not loaded.  I tried defining it to Karma as well but that did not help

Thanks

2 comments

Hello!

did you include your spechelper.js in karma configuration file? You have to add it to files[] array to get it loaded

0

Thank you!  Indeed, you must add it to the files[] section of karma.conf.js.  It is not autodiscovered.

0

Please sign in to leave a comment.