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