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

Function hasHarness

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

* Checks whether there is a matching harnesses for the given query within the current harness's * content. * * @param query The harness query to search for. * @returns Whether there is matching harnesses for the given query.

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

561 * @returns Whether there is matching harnesses for the given query.
562 */
563 async hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean> {
564 return (await this.getRootHarnessLoader()).hasHarness(query);
565 }
566
567 /**
568 * Gets the root harness loader from which to start

Callers

nothing calls this directly

Calls 2

hasHarnessMethod · 0.80
getRootHarnessLoaderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…