• Overview
@angular/cdk/testing

ComponentHarnessConstructor

interface

Constructor for a ComponentHarness subclass. To be a valid ComponentHarnessConstructor, the class must also have a static hostSelector property.

API

  
    interface ComponentHarnessConstructor<T extends ComponentHarness> {}
  
  

hostSelector

string

ComponentHarness subclasses must specify a static hostSelector property that is used to find the host element for the corresponding component. This property should match the selector for the Angular component.

Jump to details