Optimize getting injectable paths only once for all test suites (#6013)

This commit is contained in:
Janne Savolainen authored and GitHub committed 2022-08-11 09:42:52 -04:00
1 parent 17ddee2bde
commit 33834e34b7
4 files changed
+31 -46

No files matched your search

@@ -4,6 +4,11 @@
*/
import type { Injectable } from "@ogre-tools/injectable";
export interface GlobalOverride {
injectable: Injectable<any, any, any>;
overridingInstantiate: any;
}
export const getGlobalOverride = <T extends Injectable<any, any, any>>(
injectable: T,
overridingInstantiate: T["instantiate"],