Alias of afterAll.
afterAll
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, after } from "@std/testing/bdd";import { assertEquals } from "@std/assert";after(() => { console.log("after");});describe("example", () => { it("should pass", () => { // test case assertEquals(2 + 2, 4); });}); Copy
import { describe, it, after } from "@std/testing/bdd";import { assertEquals } from "@std/assert";after(() => { console.log("after");});describe("example", () => { it("should pass", () => { // test case assertEquals(2 + 2, 4); });});
Alias of
afterAll.Run some shared teardown after all of the tests in the suite.