You'll note that the number of errors didn't go down. Instead, AppComponent and CurrentWeatherComponent are failing to be created due to a missing provider for WeatherService. So, let's add the provider for WeatherService to the spec files for both components.
- Provide the WeatherService in the declarations in app.component.spec.ts
- Apply the same code change in current-weather.component.spec.ts, as shown:
src/app/app.component.spec.tssrc/app/current-weather/current-weather.component.spec.ts... beforeEach( async(() => { TestBed.configureTestingModule({ declarations: [...], providers: [WeatherService], ...