Closed
Description
🐞 Bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [x] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: 7.2.15. The issue occurred after update to v8.Description
After update from v7.2 to v8 with Chrome (or more precisely Chromium) version 57 (yes, I know...) ng test
fails for ALL tests and GUI stopped working. While latter I can only reproduce with a bigger app, ng test
already fails for a fresh project with ng new
.
🔬 Minimal Reproduction
- create a new project with
ng new
- run
ng test
with Chromium v57 (on Debian 8)
(I created a small repo as a showcase for this: https://github.com/thecp/angular-8-test)
🔥 Exception or Error
Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
at Function.assertZonePatched (node_modules/zone.js/dist/zone-evergreen.js:52:1)
at new NgZone (node_modules/@angular/core/fesm2015/core.js:30703:1)
at TestBedViewEngine._initIfNeeded (node_modules/@angular/core/fesm2015/testing.js:3128:1)
at TestBedViewEngine.createComponent (node_modules/@angular/core/fesm2015/testing.js:3384:1)
at Function.createComponent (node_modules/@angular/core/fesm2015/testing.js:2968:1)
at UserContext.it (src/app/app.component.spec.ts:14:29)
at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:359:1)
at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/zone-testing.js:308:1)
at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:358:1)
🌍 Your Environment
Angular CLI: 8.0.1
Node: 10.16.0
OS: linux x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.1
@angular-devkit/build-optimizer 0.800.1
@angular-devkit/build-webpack 0.800.1
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.1
@ngtools/webpack 8.0.1
@schematics/angular 8.0.1
@schematics/update 0.800.1
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0
Also most importantly:
chromium --version
Chromium 57.0.2987.98 Built on 8.7, running on Debian 8.11
Anything else relevant?
Again, only discovered this with Chromium v57 on Debian 8 Jessie