1- import { Type , DebugElement } from '@angular/core' ;
1+ import { Type , DebugElement , ModuleWithProviders , EnvironmentProviders , TypeProvider } from '@angular/core' ;
22import { ComponentFixture , TestBed } from '@angular/core/testing' ;
33import { Routes } from '@angular/router' ;
44import { BoundFunction , Queries , queries , Config as dtlConfig , PrettyDOMOptions } from '@testing-library/dom' ;
@@ -65,6 +65,12 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
6565 ) => Promise < void > ;
6666}
6767
68+ export interface ProviderInterface {
69+ provide : any ;
70+ useValue : any ;
71+ multi ?: boolean ;
72+ }
73+
6874export interface RenderComponentOptions < ComponentType , Q extends Queries = typeof queries > {
6975 /**
7076 * @description
@@ -128,7 +134,7 @@ export interface RenderComponentOptions<ComponentType, Q extends Queries = typeo
128134 * ]
129135 * })
130136 */
131- providers ?: any [ ] ;
137+ providers ?: Array < ProviderInterface | TypeProvider | EnvironmentProviders > ;
132138 /**
133139 * @description
134140 * A collection of imports needed to render the component, for example, shared modules.
@@ -147,7 +153,7 @@ export interface RenderComponentOptions<ComponentType, Q extends Queries = typeo
147153 * ]
148154 * })
149155 */
150- imports ?: any [ ] ;
156+ imports ?: Array < Type < any > | ModuleWithProviders < unknown > | any [ ] > ;
151157 /**
152158 * @description
153159 * A collection of schemas needed to render the component.
@@ -231,7 +237,7 @@ export interface RenderComponentOptions<ComponentType, Q extends Queries = typeo
231237 * ]
232238 * })
233239 */
234- componentProviders ?: any [ ] ;
240+ componentProviders ?: Array < ProviderInterface | TypeProvider | EnvironmentProviders > ;
235241 /**
236242 * @description
237243 * Collection of child component specified providers to override with
0 commit comments