1
- import { Type , DebugElement } from '@angular/core' ;
1
+ import { Type , DebugElement , ModuleWithProviders , EnvironmentProviders , TypeProvider } from '@angular/core' ;
2
2
import { ComponentFixture , TestBed } from '@angular/core/testing' ;
3
3
import { Routes } from '@angular/router' ;
4
4
import { BoundFunction , Queries , queries , Config as dtlConfig , PrettyDOMOptions } from '@testing-library/dom' ;
@@ -65,6 +65,12 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
65
65
) => Promise < void > ;
66
66
}
67
67
68
+ export interface ProviderInterface {
69
+ provide : any ;
70
+ useValue : any ;
71
+ multi ?: boolean ;
72
+ }
73
+
68
74
export interface RenderComponentOptions < ComponentType , Q extends Queries = typeof queries > {
69
75
/**
70
76
* @description
@@ -128,7 +134,7 @@ export interface RenderComponentOptions<ComponentType, Q extends Queries = typeo
128
134
* ]
129
135
* })
130
136
*/
131
- providers ?: any [ ] ;
137
+ providers ?: Array < ProviderInterface | TypeProvider | EnvironmentProviders > ;
132
138
/**
133
139
* @description
134
140
* 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
147
153
* ]
148
154
* })
149
155
*/
150
- imports ?: any [ ] ;
156
+ imports ?: Array < Type < any > | ModuleWithProviders < unknown > | any [ ] > ;
151
157
/**
152
158
* @description
153
159
* A collection of schemas needed to render the component.
@@ -231,7 +237,7 @@ export interface RenderComponentOptions<ComponentType, Q extends Queries = typeo
231
237
* ]
232
238
* })
233
239
*/
234
- componentProviders ?: any [ ] ;
240
+ componentProviders ?: Array < ProviderInterface | TypeProvider | EnvironmentProviders > ;
235
241
/**
236
242
* @description
237
243
* Collection of child component specified providers to override with
0 commit comments