Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.
3
import
* as common from
'../common/index.mjs'
;
4
import
assert from
'node:assert'
;
Callers
nothing calls this directly
Calls
2
registerHooks
Function · 0.85
defaultResolve
Function · 0.50
Tested by
no test coverage detected