MCPcopy Create free account
hub / github.com/denoland/std / before

Function before

testing/bdd.ts:947–951  ·  view source on GitHub ↗
(
  fn: (this: T) => void | Promise<void>,
)

Source from the content-addressed store, hash-verified

945 * `Deno.test.beforeAll()` (Deno 2.5+) instead.
946 */
947export function before<T>(
948 fn: (this: T) => void | Promise<void>,
949) {
950 beforeAll(fn);
951}
952
953/**
954 * Run some shared teardown after all of the tests in the suite.

Callers 1

bdd_test.tsFile · 0.90

Calls 1

beforeAllFunction · 0.85

Tested by

no test coverage detected