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

Method hasHarness

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

* Searches for an instance of the component corresponding to the given harness type under the * `HarnessLoader`'s root element, and returns a boolean indicating if any were found. * @param query A query for a harness to create * @return A boolean indicating if an instance was found.

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

153 * @return A boolean indicating if an instance was found.
154 */
155 hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
156}
157
158/**

Callers 2

hasHarnessFunction · 0.80
crossEnvironmentSpecsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected