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

前端 未结 10 1539
栀梦
栀梦 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:04

    Another thing which has helped me as well and solved a few of my problems was to add the statement to destroy the fixture after each test

      afterEach(() => {
        fixture.destroy();
      });

提交回复
热议问题