Currently, it's impossible to use ng-mocks as a tag. When you attempt to create it, you are informed it's too similar to ngmock in the following error:
The tag [ng-mocks] is too similar to [ngmock]. If you think this tag should be allowed, discuss it on meta.
ng-mocks is a library to mock declarations in Angular 5+: https://www.npmjs.com/package/ng-mocks
ngmock is a part of AngularJS (Angular 1), and isn't present in Angular 2+: https://docs.angularjs.org/api/ngMock
The proposal is:
- to rename ngmock to angularjs-ngmock, because AngularJS has been deprecated and isn't supported: https://blog.angular.io/discontinued-long-term-support-for-angularjs-cc066b82e65a
- to add ng-mocks as it is, because ng-mocks is for Angular 5+, including latest Angular 13
ng-mocks
is a synonym ofngMock
, they are two different libraries. However, if you try to addng-mocks
as a tag onstackoverflow
, it replaces it withngmock
and suggests to raise a discussion here in order to add a new tag forng-mocks
.ngmock
toangularjs-ngMock
and to addng-mocks
as it is, becauseng-mocks
is for Angular 5+ (Including latest Angular 13), and AngularJS has been deprecated and isn't supported: blog.angular.io/…