ルーティングパスのテストスイートを作成しているときに、次のような同じ問題が発生しました。
{
   path: 'edit/:property/:someId',
   component: YourComponent,
   resolve: {
       yourResolvedValue: YourResolver
   }
}
コンポーネントで、渡されたプロパティを次のように初期化しました。
ngOnInit(): void {    
   this.property = this.activatedRoute.snapshot.params.property;
   ...
}
テストを実行するときに、モックのActivatedRoute "useValue"でプロパティ値を渡さないと、 "fixture.detectChanges()"を使用して変更を検出するときに未定義になります。これは、ActivatedRouteのモック値にプロパティparams.propertyが含まれていないためです。次に、フィクスチャがコンポーネントの「this.property」を初期化するために、モックuseValueがこれらのパラメータを持っている必要があります。次のように追加できます。
  let fixture: ComponentFixture<YourComponent>;
  let component: YourComponent;
  let activatedRoute: ActivatedRoute; 
  beforeEach(done => {
        TestBed.configureTestingModule({
          declarations: [YourComponent],
          imports: [ YourImportedModules ],
          providers: [
            YourRequiredServices,
            {
              provide: ActivatedRoute,
              useValue: {
                snapshot: {
                  params: {
                    property: 'yourProperty',
                    someId: someId
                  },
                  data: {
                    yourResolvedValue: { data: mockResolvedData() }
                  }
                }
              }
            }
          ]
        })
          .compileComponents()
          .then(() => {
            fixture = TestBed.createComponent(YourComponent);
            component = fixture.debugElement.componentInstance;
            activatedRoute = TestBed.get(ActivatedRoute);
            fixture.detectChanges();
            done();
          });
      });
たとえば、次のようにテストを開始できます。
it('should ensure property param is yourProperty', async () => {
   expect(activatedRoute.snapshot.params.property).toEqual('yourProperty');
   ....
});
ここで、別のプロパティ値をテストしたいとします。次に、モックのActivatedRouteを次のように更新できます。 
  it('should ensure property param is newProperty', async () => {
    activatedRoute.snapshot.params.property = 'newProperty';
    fixture = TestBed.createComponent(YourComponent);
    component = fixture.debugElement.componentInstance;
    activatedRoute = TestBed.get(ActivatedRoute);
    fixture.detectChanges();
    expect(activatedRoute.snapshot.params.property).toEqual('newProperty');
});
お役に立てれば!