Run some shared teardown after all of the tests in the suite.
The self type of the function
The function to implement the teardown behavior.
import { describe, it, afterAll } from "@std/testing/bdd";import { assertEquals } from "@std/assert";afterAll(() => { console.log("afterAll");});describe("example", () => { it("should pass", () => { // test case assertEquals(2 + 2, 4); });}); Copy
import { describe, it, afterAll } from "@std/testing/bdd";import { assertEquals } from "@std/assert";afterAll(() => { console.log("afterAll");});describe("example", () => { it("should pass", () => { // test case assertEquals(2 + 2, 4); });});
Run some shared teardown after all of the tests in the suite.