afterAll

import { afterAll } from "jsr:@ende/testing/bdd";

function ยท deprecated

function afterAll<T>(fn: (this: T) => void | Promise<void>): void

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, afterAll } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";

afterAll(() => {
 console.log("afterAll");
});

describe("example", () => {
  it("should pass", () => {
    // test case
    assertEquals(2 + 2, 4);
  });
});

Source