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

Method getHarnessAtIndex

src/cdk/testing/component-harness.ts:131–131  ·  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 the instance on the page * at the given index. If no matching component exists at that index, an error is thrown. * @param que

(query: HarnessQuery<T>, index: number)

Source from the content-addressed store, hash-verified

129 * @throws If a matching component instance can't be found at the given index.
130 */
131 getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, index: number): Promise<T>;
132
133 /**
134 * Searches for all instances of the component corresponding to the given harness type under the

Callers 1

getHarnessAtIndexFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected