MCPcopy Index your code
hub / github.com/angular/angular / createComponent

Method createComponent

packages/core/testing/src/test_bed.ts:416–421  ·  view source on GitHub ↗
(
    component: Type<T>,
    options?: TestComponentOptions,
  )

Source from the content-addressed store, hash-verified

414 }
415
416 static createComponent<T>(
417 component: Type<T>,
418 options?: TestComponentOptions,
419 ): ComponentFixture<T> {
420 return TestBedImpl.INSTANCE.createComponent(component, options);
421 }
422
423 static getLastFixture<T = unknown>(): ComponentFixture<T> {
424 return TestBedImpl.INSTANCE.getLastFixture();

Callers

nothing calls this directly

Calls 10

injectMethod · 0.95
getAsyncClassMetadataFnFunction · 0.85
getComponentDefFunction · 0.70
createComponentMethod · 0.65
runMethod · 0.65
stringifyFunction · 0.50
initComponentFunction · 0.50
insertRootElementMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected