No provider for $injector in Angular Testing
问题 I've been trying to setup testing in our Hybrid AngularJS/NG6 App but wow is this difficult to do. I keep getting constant errors. The latest is the following: Error: StaticInjectorError(DynamicTestModule)[$injector]: StaticInjectorError(Platform: core)[$injector]: NullInjectorError: No provider for $injector! I have the following component : import { Component, OnInit, Input, Inject } from '@angular/core'; import { DashboardService } from '../../services/dashboard/dashboard.service';