()
| 706 | |
| 707 | const componentFactory = new ComponentFactory(componentDef); |
| 708 | const initComponent = () => { |
| 709 | const componentRef = componentFactory.create( |
| 710 | Injector.NULL, |
| 711 | [], |
| 712 | `#${rootElId}`, |
| 713 | this.testModuleRef, |
| 714 | undefined, |
| 715 | options?.bindings, |
| 716 | ) as ComponentRef<T>; |
| 717 | return this.runInInjectionContext(() => new ComponentFixture(componentRef)); |
| 718 | }; |
| 719 | const noNgZone = this.inject(ComponentFixtureNoNgZone, false); |
| 720 | const ngZone = noNgZone ? null : this.inject(NgZone, null); |
| 721 | const fixture = ngZone ? ngZone.run(initComponent) : initComponent(); |
nothing calls this directly
no test coverage detected