Closed henry-hz closed 4 years ago
getting the same here, using yarn 0.21.0, cloned gitrepo yesterday
For everyone else having this issue:
in app.component.spec.ts
import {RouterTestingModule} from '@angular/router/testing'
beforeEach(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], imports: [ RouterTestingModule ] });
reference:
using mokipedia's solution, not work for me.
@mokipedia is awesome. My error gone.
@mokipedia solution works fine for me, thxs guy 👍
@mokipedia Thanks, that's THE solution! Just in case someone uses the Atom's Angular snippet, the spec file does not include the "import" array by default so you will have to add it to the configureTestingModule by yourself, and include only the RouterTestingModule
thats cool that it helps. Just wanted to follow up for everyone else having this issues: coreui seems to have moved angular5 development to a new repository (where this error is obviously fixed): https://github.com/mrholek/CoreUI-Angular
@mokipedia It worked! Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Trying to run "ng test" on angular4 starter application.
I am using : node v8.1.4 npm 5.0.3