resetGlobalProviders
functionfunction resetGlobalProviders(): void;Clears the module-level cache for lifetime: 'global' providers.
Global provider factories normally run once per Node process and their
result is memoized forever. That's the desired behavior in production —
it's also what makes them leak between tests. Call this from test setup
(or automatically via TestHarness.clearMockedContexts()) to get a clean
slate between specs that exercise global-lifetime providers.
Returns
void