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