MCPcopy Index your code
hub / github.com/nodejs/node / test-module-hooks-create-require-with-url.mjs

File test-module-hooks-create-require-with-url.mjs

test/module-hooks/test-module-hooks-create-require-with-url.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Verify that if URL is used to createRequire, that URL is passed to the resolve hook
2// as parentURL.
3import * as common from '../common/index.mjs';
4import assert from 'node:assert';

Callers

nothing calls this directly

Calls 2

registerHooksFunction · 0.85
defaultResolveFunction · 0.50

Tested by

no test coverage detected