createDynamicTestBed<T extends Object> function

NgTestBed<T> createDynamicTestBed<T extends Object>({
  1. Element? host,
  2. InjectorFactory? rootInjector,
  3. bool watchAngularLifecycle = true,
})

An alternative factory for NgTestBed that allows not typing T.

This is for compatibility reasons only and should not be used otherwise.

Implementation

NgTestBed<T> createDynamicTestBed<T extends Object>({
  Element? host,
  InjectorFactory? rootInjector,
  bool watchAngularLifecycle = true,
}) {
  return NgTestBed<T>._allowDynamicType(
    host: host,
    rootInjector: rootInjector,
    watchAngularLifecycle: watchAngularLifecycle,
  );
}