Jasmine &引用;“测试完成”;茉莉花?

Jasmine &引用;“测试完成”;茉莉花?,jasmine,Jasmine,如何将测试完成的处理程序添加到jasmine测试 我需要它来释放测试消耗的资源 我使用的是最新版本的with Node JS。为此,您可以使用块 from:afterAll函数在所有规格完成后调用… describe("afterAll function", function() { afterAll(function() { //release resources here after all the test suits have finished running });

如何将测试完成的处理程序添加到jasmine测试

我需要它来释放测试消耗的资源


我使用的是最新版本的with Node JS。

为此,您可以使用

from:
afterAll函数在所有规格完成后调用…

describe("afterAll function", function() {

  afterAll(function() {
    //release resources here after all the test suits have finished running
  });

});