(
doc: Document,
html: string,
component: Type<unknown>,
options?: {
envProviders?: Provider[];
hydrationFeatures?: () => HydrationFeature<HydrationFeatureKind>[];
},
)
| 161 | * @returns a promise with the application ref |
| 162 | */ |
| 163 | export async function prepareEnvironmentAndHydrate( |
| 164 | doc: Document, |
| 165 | html: string, |
| 166 | component: Type<unknown>, |
| 167 | options?: { |
| 168 | envProviders?: Provider[]; |
| 169 | hydrationFeatures?: () => HydrationFeature<HydrationFeatureKind>[]; |
| 170 | }, |
| 171 | ): Promise<ApplicationRef> { |
| 172 | prepareEnvironment(doc, html); |
| 173 | return hydrate(doc, component, options); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Clears document contents to have a clean state for the next test. |
no test coverage detected
searching dependent graphs…