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

Function getAllHarnesses

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

* Searches for all instances of the component corresponding to the given harness type under the * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance. * @param query A query for a harness to create * @return A list instances of the given harness type

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

279 * @return A list instances of the given harness type.
280 */
281 getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]> {
282 return this.locatorForAll(query)();
283 }
284
285 /**
286 * Searches for all instance of the component corresponding to the given harness type under the

Callers

nothing calls this directly

Calls 1

locatorForAllMethod · 0.80

Tested by

no test coverage detected