Is it possible to execute some sort of initialization coding in karma? I need to run a code like this before my tests get executed:
angular.module('module.common.brand', []).constant('BRAND', 'brandname');
My app currently requires this module (and this constant) but today this is currently initialized in a funky way that my karma doesn't know about it.
As any other JS file, initialization file should be specified in Karma configuration (files
option), right before test/*.spec.js
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With