MCPcopy Create free account
hub / github.com/npm/cli / mockCollect

Function mockCollect

workspaces/arborist/test/unreviewed-scripts.js:10–13  ·  view source on GitHub ↗
(t, getInstallScripts)

Source from the content-addressed store, hash-verified

8// so script detection (including the synthetic node-gyp `binding.gyp` path)
9// can be controlled without touching the filesystem.
10const mockCollect = (t, getInstallScripts) =>
11 t.mock('../lib/unreviewed-scripts.js', {
12 '../lib/install-scripts.js': getInstallScripts,
13 }).collectUnreviewedScripts
14
15// Minimal tree fixture for the walk.
16const tree = (nodes) => ({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected