MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / commonjs-require-imports.test.ts

File commonjs-require-imports.test.ts

__tests__/commonjs-require-imports.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * A CommonJS `require('./x')` is a file import, as ESM's `import` is: Express's
3 * `lib/express.js` requires `./application`, `./request` and `./response`, and
4 * the index said it imported nothing — an empty Imports rail in the viewer and

Callers

nothing calls this directly

Calls 10

describeFunction · 0.85
mapMethod · 0.80
getNodeMethod · 0.80
importedFilesFunction · 0.70
closeMethod · 0.65
getNodesInFileMethod · 0.65
joinMethod · 0.45
initMethod · 0.45
getFileDependenciesMethod · 0.45
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected