Angular Mocks version to Angular version ratio

When implementing Karma in an AngularJS application with a version, the 1.3.16module angular-mocksthrows the following error:

angular -mocks.js: Uncaught TypeError: angular.module (...). information is not a function

After searching the Internet, it turned out that the Karma version used by ie 1.5.0and the AngularJS version are not compatible. The used version of angular -mocks is 1.6.3.

So, after a Google search, there was no way to find out which version of AngularJS is compatible with which version of Karma or angular -Mocks. Any help is appreciated.

+4
source share
1 answer

. . 1.3.16 angular.js ​​ 1.3.16 angular-*.js ( angular-mocks.js).

, ngMock 1.6.3 ( info), , .

ngMock reference :

: <... > X.Y.Z - AngularJS, .

Angular Karma. - , .

+3

Source: https://habr.com/ru/post/1672667/


All Articles