angular 单元测试报错:Failed: Can't resolve all parameters for Router: (?, ?, ?, ?, ?, ?, ?, ?).
测试中如果不关心真实的路由跳转,可以使用mockletmockRouter={navigate:jasmine.createSpy('navigate')}TestBed.configureTestingModule({providers:[{provide:Router,useValue:mockRouter}]})在测试中可能只是想要确认navigate被调用,可以这样:expect(mock