How to use the @angular/core/testing.TestBed.configureTestingModule function in @angular/core

To help you get started, we’ve selected a few @angular/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lacolaco / ng-dynamic / src / dynamic-component / dynamic-component.directive.spec.ts View on Github external
beforeEach(() => {
        TestBed.configureTestingModule({
            imports: [
                DynamicComponentModule.forRoot({
                    imports: [CommonModule],
                    schemas: [CUSTOM_ELEMENTS_SCHEMA],
                    declarations: [] // for issue #27
                })
            ],
            declarations: [MultipleCmp, TestCmp, ButtonComponent],
        });
    });
github fetrarij / ngx-daterangepicker-material / demo / src / app / app.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [
        AppComponent
      ],
    }).compileComponents();
  }));
  it('should create the app', async(() => {
github aviabird / angularspree / src / app / shared / components / saved-address / saved-address.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [SavedAddressComponent]
    }).compileComponents();
  }));
github viadee / sonarQuest / sonarQuest-frontend / src / app / pages / admin-page / components / admin-sonar-qube / admin-sonar-qube.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ AdminSonarQubeComponent ],
      imports: [
        BrowserModule,
        BrowserAnimationsModule,
        RouterTestingModule,
        FormsModule,
        TranslateTestingModule,
        MatTooltipModule,
        MatIconModule,
        MatCardModule,
        MatInputModule,
        MatDialogModule,
        MatListModule,
        MatDividerModule,
        MatSnackBarModule,
        MatFormFieldModule,
github 100cm / at-ui-angular / src / app / showcase / high-light / high-light.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ HighLightComponent ]
    })
    .compileComponents();
  }));
github intershop / intershop-pwa / src / app / registration / pages / registration-page / email-password / email-password.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [EmailPasswordComponent],
      imports: [
        SharedModule,
        TranslateModule.forRoot()
      ]
    })
      .compileComponents();
  }));
github Azure / BatchExplorer / src / @batch-flask / ui / form / hint / hint.component.spec.ts View on Github external
beforeEach(() => {
        TestBed.configureTestingModule({
            imports: [],
            declarations: [HintComponent, TestComponent],
        });
        fixture = TestBed.createComponent(TestComponent);
        testComponent = fixture.componentInstance;
        de = fixture.debugElement.query(By.css("bl-hint"));
        fixture.detectChanges();
    });
github jmw5598 / gro-light-automation / frontend / src / app / dashboard / component / readings-list / readings-list.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ ReadingsListComponent ]
    })
    .compileComponents();
  }));
github Sunbird-Ed / SunbirdEd-portal / src / app / client / src / app / modules / public / module / course / components / public-course / public-course.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [SharedModule.forRoot(), CoreModule.forRoot(), HttpClientTestingModule, SuiModule, TelemetryModule.forRoot()],
      declarations: [PublicCourseComponent],
      providers: [PublicPlayerService, { provide: ResourceService, useValue: resourceBundle },
      { provide: Router, useClass: RouterStub },
      { provide: ActivatedRoute, useClass: FakeActivatedRoute }],
      schemas: [NO_ERRORS_SCHEMA]
    }).compileComponents();
  }));
github stbui / angular-material-app / src / app / todo / todo-header / todo-header.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ TodoHeaderComponent ]
    })
    .compileComponents();
  }));