import { provideZonelessChangeDetection } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { provideAnimations } from '@angular/platform-browser/animations'; import { provideHttpClient } from '@angular/common/http'; import { provideRouter } from '@angular/router'; import { TOAST_CONFIG, DefaultGlobalConfig } from 'ngx-toastr'; import { App } from './app'; describe('App', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [App], providers: [ provideZonelessChangeDetection(), provideHttpClient(), provideRouter([]), provideAnimations(), { provide: TOAST_CONFIG, useValue: { default: DefaultGlobalConfig, config: {} } }, ], }).compileComponents(); }); it('should create the app', () => { const fixture = TestBed.createComponent(App); const app = fixture.componentInstance; expect(app).toBeTruthy(); }); });