ngMocks.globalExclude marks declarations, services and tokens to be avoided from the mocking process during creating mock modules.
The best place to do that is in
jasmine or in
Let's mark the
APP_URL token in order to be kept in mock modules.
// test.spec.ts// ...MockModule(ModuleWithService);// ...const url = TestBed.inject(APP_URL);// ...
url is the original one.