Angular 6 Unit Tests: An error was thrown in afterAll\nReferenceError: Can't find variable: $ thrown

前端 未结 10 1450
栀梦
栀梦 2020-12-23 09:25

When running my unit tests, from time to time, even if they pass, at the end of all the tests running, I will get the following error.

On my Jenkins CI build running

10条回答
  •  时光说笑
    2020-12-23 10:16

    In my case changing the import from Observable to Rx Library has fixed the issue

    before:

    import { Observable } from 'rxjs/Observable';

    After:

    import { Observable } from 'rxjs/Rx';

提交回复
热议问题