MCPcopy Index your code
hub / github.com/nodejs/node / before

Method before

lib/internal/test_runner/test.js:397–405  ·  view source on GitHub ↗
(fn, options)

Source from the content-addressed store, hash-verified

395 }
396
397 before(fn, options) {
398 this.#test.createHook('before', fn, {
399 __proto__: null,
400 ...options,
401 parent: this.#test,
402 hookType: 'before',
403 loc: getCallerLocation(),
404 });
405 }
406
407 after(fn, options) {
408 this.#test.createHook('after', fn, {

Callers 3

global-hooks.cjsFile · 0.80
global-hooks.mjsFile · 0.80
hooks.jsFile · 0.80

Calls 1

createHookMethod · 0.80

Tested by

no test coverage detected