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

Function before

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

Source from the content-addressed store, hash-verified

897 * @param fn The function to implement the setup behavior.
898 */
899export function before<T>(
900 fn: (this: T) => void | Promise<void>,
901) {
902 beforeAll(fn);
903}
904
905/**
906 * 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