Skip to content

Commit c1dee4c

Browse files
AleksanderBodurrialxhub
authored andcommitted
test(core): unit tests for the injector profiler and injector debugging APIs (#48639)
Creates unit tests for the following APIs - setInjectorProfiler - getInjectorProviders - getInjectorResolutionPath - getDependenciesFromInjectable Modifies existing tests in - packages/examples/core/di/ts/injector_spec.ts - packages/core/test/render3/jit/declare_injectable_spec.ts - packages/core/test/render3/jit/declare_factory_spec.ts because they setup framework injector context manually. Exports setInjectorProfilerContext in packages/core/src/core_private_export.ts in order for use in the the modified tests above. PR Close #48639
1 parent 98d262f commit c1dee4c

5 files changed

Lines changed: 1003 additions & 7 deletions

File tree

‎packages/core/src/core_private_export.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export {InitialRenderPendingTasks as ɵInitialRenderPendingTasks} from './initia
2525
export {ComponentFactory as ɵComponentFactory} from './linker/component_factory';
2626
export {clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, resolveComponentResources as ɵresolveComponentResources} from './metadata/resource_loading';
2727
export {ReflectionCapabilities as ɵReflectionCapabilities} from './reflection/reflection_capabilities';
28+
export {InjectorProfilerContext as ɵInjectorProfilerContext, setInjectorProfilerContext as ɵsetInjectorProfilerContext} from './render3/debug/injector_profiler';
2829
export {allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, BypassType as ɵBypassType, getSanitizationBypassType as ɵgetSanitizationBypassType, SafeHtml as ɵSafeHtml, SafeResourceUrl as ɵSafeResourceUrl, SafeScript as ɵSafeScript, SafeStyle as ɵSafeStyle, SafeUrl as ɵSafeUrl, SafeValue as ɵSafeValue, unwrapSafeValue as ɵunwrapSafeValue} from './sanitization/bypass';
2930
export {_sanitizeHtml as ɵ_sanitizeHtml} from './sanitization/html_sanitizer';
3031
export {_sanitizeUrl as ɵ_sanitizeUrl} from './sanitization/url_sanitizer';

0 commit comments

Comments
 (0)