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
Please sign in to leave a comment.
Hello!
did you include your spechelper.js in karma configuration file? You have to add it to files[] array to get it loaded
Thank you! Indeed, you must add it to the files[] section of karma.conf.js. It is not autodiscovered.