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

Function record

test/fixtures/test-runner/no-isolation/two.test.js:4–7  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

2const { before, beforeEach, after, afterEach, test, suite } = require('node:test');
3
4function record(data) {
5 globalThis.GLOBAL_ORDER.push(data);
6 console.log(data);
7}
8
9before(function() {
10 record(`before two: ${this.name}`);

Callers 1

two.test.jsFile · 0.70

Calls 2

pushMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…