simontonsoftware / s-libs

A collection of libraries for any of javascript, rxjs, or angular.
MIT License
43 stars 5 forks source link

[ng-dev] Feature request: `AngularContext.hasHarness()` #64

Closed ersimont closed 2 years ago

ersimont commented 2 years ago

Something like:

  async hasHarness<H extends ComponentHarness>(
    query: HarnessQuery<H>,
  ): Promise<boolean> {
    const all = await this.getAllHarnesses(query);
    return all.length > 0;
  }
ersimont commented 2 years ago

Coming in the next release!