MCPcopy
hub / github.com/angular/components / getAllHarnesses

Method getAllHarnesses

src/cdk/testing/component-harness.ts:139–139  ·  view source on GitHub ↗

* Searches for all instances of the component corresponding to the given harness type under the * `HarnessLoader`'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

137 * @return A list instances of the given harness type.
138 */
139 getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
140
141 /**
142 * Searches for all instances of the component corresponding to the given harness type under the

Calls

no outgoing calls

Tested by

no test coverage detected