setComponent<E extends T> method

NgTestBed<E> setComponent<E extends T>(
  1. ComponentFactory<E> component
)

Returns a new instance of NgTestBed with component overrode.

Implementation

NgTestBed<E> setComponent<E extends T>(ComponentFactory<E> component) {
  return fork<E>(component: component);
}