The Karma test suite fails with the message:
Disconnected, because no message in 10000 ms.
No tests are executed at all.
"@angular/core": "7.1.3",
"jasmine-core": "3.3.0",
"karma-jasmine": "1.1.2",
There is no apparent reason for the failure, it just started after a new test was introduced.
When the
--module
compiler option for TypeScript intsconfig.spec.json
is set tocommonjs
Karma fails internally before any tests are executed and shows the timeout error above.The import ordering can let Karma fail:
While this order works as expected:
The problem can also be fixed by changing the module compiler option to e.g.
es2015
.