import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { MatDialogModule } from '@angular/material/dialog'; import { RouterTestingModule } from '@angular/router/testing'; import { ProductDetailComponent } from './product-detail.component'; describe('ProductDetailComponent', () => { let component: ProductDetailComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [ProductDetailComponent], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ProductDetailComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });