import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatSnackBarModule } from '@angular/material/snack-bar' ; import { RouterTestingModule } from '@angular/router/testing' ; import { AppComponent } from './app.component' ; import { CoreModule } from './core/core.module' ; describe ( AppComponent . name , ( ) => { let fixture ; let component ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { imports : [ CoreModule , MatSnackBarModule , RouterTestingModule ] , declarations : [ AppComponent ] } ) ; fixture = TestBed . createComponent ( AppComponent ) ; component = fixture . componentInstance ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;