But the ModuleBuilder won't work when you would use 'aModule' as an inherited module from another module:
angular.module('anotherModule', [])
When doing a "forModule" on "anotherModule" the original "serviceUsingMockableService" (without mocks) will be returned (and MockBuilder therefor acts unexpectedly):
The ModuleBuilder currently correctlty handle components declared in inherited modules. Consider the following module:
The ModuleBuilder with succesfully include "serviceUsingMockableService" with a mocked-out "mockableService":
But the ModuleBuilder won't work when you would use 'aModule' as an inherited module from another module:
When doing a "forModule" on "anotherModule" the original "serviceUsingMockableService" (without mocks) will be returned (and MockBuilder therefor acts unexpectedly):