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

Function test

test/parallel/test-require-empty-main.js:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19setImmediate(test);
20
21function test() {
22 assert.strictEqual(require.resolve(where), expected);
23 assert.strictEqual(require(where), 42);
24 assert.strictEqual(require.resolve(where), expected);
25}

Callers 1

Calls 2

requireFunction · 0.50
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…