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

Function tree

deps/npm/test/lib/utils/warn-workspace-allow-scripts.js:23–25  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

21})
22
23const tree = (nodes) => ({
24 inventory: new Map(nodes.map((n, i) => [`node_modules/${n.name || `n${i}`}`, n])),
25})
26
27t.test('returns [] for empty tree', async t => {
28 t.strictSame(findWorkspaceAllowScripts(tree([])), [])

Callers 2

printHumanMethod · 0.50

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…