Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ require-default.test.ts
File
require-default.test.ts
__tests__/require-default.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* `require(
'./x'
).default` reads the `default` PROPERTY of the module's
3
* exports, and so does `
const
{ default: X } = require(
'./x'
)`. The
import
4
* mapping records it as a named
import
of `default`, which is right
for
a
Callers
nothing calls this directly
Calls
7
describe
Function · 0.85
outOf
Function · 0.85
into
Function · 0.70
node
Function · 0.70
close
Method · 0.65
join
Method · 0.45
init
Method · 0.45
Tested by
no test coverage detected