karma + jasmine + webpack: module is not a function karma + jasmine + webpack: module is not a function angularjs angularjs

karma + jasmine + webpack: module is not a function


Actually it was webpack whitch rewrites module (angular.mock.module) to (module.exports), then the solution is not using the alias. Use directly the angular.mock function like this:

angular.mock.module()