MCPcopy Create free account
hub / github.com/angular/components / harnessLoaderForAll

Function harnessLoaderForAll

src/cdk/testing/harness-environment.ts:221–224  ·  view source on GitHub ↗

* Gets a list of `HarnessLoader` instances, one for each matching element. * @param selector The selector for the root element. * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.

(selector: string)

Source from the content-addressed store, hash-verified

219 * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.
220 */
221 async harnessLoaderForAll(selector: string): Promise<HarnessLoader[]> {
222 const elements = await this.getAllRawElements(selector);
223 return elements.map(element => this.createEnvironment(element));
224 }
225
226 /**
227 * Searches for an instance of the component corresponding to the given harness type under the

Callers

nothing calls this directly

Calls 2

getAllRawElementsMethod · 0.45
createEnvironmentMethod · 0.45

Tested by

no test coverage detected