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

Method getHarness

src/cdk/testing/component-harness.ts:110–110  ·  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 `ComponentHarness` for that instance. If multiple * matching components are found, a harness for the first one is returned. If no matching * componen

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

108 * @throws If a matching component instance can't be found.
109 */
110 getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
111
112 /**
113 * Searches for an instance of the component corresponding to the given harness type under the

Calls

no outgoing calls

Tested by 1