MCPcopy Create free account
hub / github.com/angular/components / createComponent

Function createComponent

src/material/datepicker/datepicker.spec.ts:67–76  ·  view source on GitHub ↗
(component: Type<T>, providers: Provider[] = [])

Source from the content-addressed store, hash-verified

65
66 // Creates a test component fixture.
67 function createComponent<T>(component: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
68 TestBed.configureTestingModule({
69 providers: [
70 ...providers,
71 {provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}},
72 ],
73 });
74
75 return TestBed.createComponent(component);
76 }
77
78 function wait(milliseconds: number) {
79 return new Promise(resolve => setTimeout(resolve, milliseconds));

Callers 2

datepicker.spec.tsFile · 0.70
createToggleComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected