MCPcopy Index your code
hub / github.com/angular/components / getHarnessOrNull

Method getHarnessOrNull

src/cdk/testing/component-harness.ts:120–120  ·  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

118 * @return An instance of the given harness type (or null if not found).
119 */
120 getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
121
122 /**
123 * Searches for an instance of the component corresponding to the given harness type under the

Callers 2

getHarnessOrNullFunction · 0.80
crossEnvironmentSpecsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected