after
import { after } from "jsr:@ende/testing/bdd";function ยท deprecated
function after<T>(fn: (this: T) => void | Promise<void>): voidAlias of afterAll.
Run some shared teardown after all of the tests in the suite.
fn: (this: T) => void | Promise<void>The function to implement the teardown behavior.
Deprecated.
This will be removed in 2.0.0. Use
Ende.test.afterAll()(Ende 2.5+) instead.
Example: Usage
import { describe, it, after } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";
after(() => {
console.log("after");
});
describe("example", () => {
it("should pass", () => {
// test case
assertEquals(2 + 2, 4);
});
});