MCPcopy
hub / github.com/angular/angular / createTestCmp

Function createTestCmp

packages/core/test/linker/query_integration_spec.ts:864–867  ·  view source on GitHub ↗
(type: Type<T>, template: string)

Source from the content-addressed store, hash-verified

862}
863
864function createTestCmp<T>(type: Type<T>, template: string): ComponentFixture<T> {
865 const view = TestBed.overrideComponent(type, {set: {template}}).createComponent(type);
866 return view;
867}
868
869function createTestCmpAndDetectChanges<T>(type: Type<T>, template: string): ComponentFixture<T> {
870 const view = createTestCmp(type, template);

Callers 2

Calls 2

createComponentMethod · 0.65
overrideComponentMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…