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

Function node

workspaces/arborist/test/install-scripts.js:15–24  ·  view source on GitHub ↗
({
  scripts = {},
  gypfile,
  resolved = 'https://registry.npmjs.org/pkg/-/pkg-1.0.0.tgz',
  path = '/fake',
} = {})

Source from the content-addressed store, hash-verified

13 })
14
15const node = ({
16 scripts = {},
17 gypfile,
18 resolved = 'https://registry.npmjs.org/pkg/-/pkg-1.0.0.tgz',
19 path = '/fake',
20} = {}) => ({
21 resolved,
22 path,
23 package: { scripts, ...(gypfile !== undefined ? { gypfile } : {}) },
24})
25
26t.test('collects preinstall, install, postinstall', async t => {
27 const getInstallScripts = mockGetInstallScripts(t)

Callers 1

install-scripts.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected