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

Method countHarnesses

src/cdk/testing/component-harness.ts:147–147  ·  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 the total count of all matching components. * @param query A query for a harness to create * @return An integer indicating the number of instances th

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

145 * @return An integer indicating the number of instances that were found.
146 */
147 countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
148
149 /**
150 * Searches for an instance of the component corresponding to the given harness type under the

Callers 2

countHarnessesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected