title: List providers, imports, declarations programmatically in an Angular 4...8 component
body: <p>Is there a way to programmatically list the imports, declaration and providers that are in-scope in a component by some means of reflection for the purpose of configuring a TestBed in an Angular (Jasmine) test.</p>