Seems it related to firebase / @angular/fire npm module:
When we injected the AngularFirestore(only, do nothing else), then the test will fail.
$ npm ls @angular/fire
cad-screen@0.0.10 /Users/zixia/git/cad-screen
└── @angular/fire@5.0.2
Error Message
ng test --watch=false
10% building modules 7/7 modules 0 active14 10 2018 06:06:51.301:INFO [karma]: Karma v3.0.0 server started at http://0.0.0.0:9876/
14 10 2018 06:06:51.305:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
10% building modules 8/8 modules 0 active14 10 2018 06:06:51.386:INFO [launcher]: Starting browser ChromeHeadless
14 10 2018 06:06:58.485:INFO [HeadlessChrome 0.0.0 (Mac OS X 10.12.6)]: Connected on socket WRuU-cegxHOdRwKpAAAA with id 76337079
HeadlessChrome 0.0.0 (Mac OS X 10.12.6) AppComponent should render title in a h1 tag FAILED
Error: 2 timer(s) still in the queue.
at UserContext.eval (./node_modules/zone.js/dist/zone-testing.js?:1434:27)
at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:387:26)
at ProxyZoneSpec.onInvoke (./node_modules/zone.js/dist/zone-testing.js?:287:39)
at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:386:32)
at Zone.run (./node_modules/zone.js/dist/zone.js?:137:43)
at runInTestZone (./node_modules/zone.js/dist/zone-testing.js?:508:34)
at UserContext.eval (./node_modules/zone.js/dist/zone-testing.js?:523:20)
HeadlessChrome 0.0.0 (Mac OS X 10.12.6): Executed 3 of 5 (1 FAILED) (0 secs / 0.309 secs)
HeadlessChrome 0.0.0 (Mac OS X 10.12.6) AppComponent should render title in a h1 tag FAILED
Error: 2 timer(s) still in the queue.
at UserContext.eval (./node_modules/zone.js/dist/zone-testing.js?:1434:27)
at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:387:26)
at ProxyZoneSpec.onInvoke (./node_modules/zone.js/dist/zone-testing.js?:287:39)
at ZoneDelegate.invoke (./node_modules/zone.js/dist/zone.js?:386:32)
at Zone.run (./node_modules/zone.js/dist/zone.js?:137:43)
at runInTestZone (./node_modules/zone.js/dist/zone-testing.js?:508:34)
HeadlessChrome 0.0.0 (Mac OS X 10.12.6): Executed 5 of 5 (1 FAILED) (0.454 secs / 0.388 secs)
TOTAL: 1 FAILED, 4 SUCCESS
TOTAL: 1 FAILED, 4 SUCCESS
Seems it related to
firebase
/@angular/fire
npm module:When we injected the
AngularFirestore
(only, do nothing else), then the test will fail.Error Message
Travis CI
https://travis-ci.com/BUPT/cad-screen/jobs/151635569
Versions
See Also