答案 0 :(得分:2)
您可以使用 afterAll 块来实现此目的。
来自documentation:afterAll function is called after all specs finish...
describe("afterAll function", function() {
afterAll(function() {
//release resources here after all the test suits have finished running
});
});