Function
node
({
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 | |
| 15 | const 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 | |
| 26 | t.test('collects preinstall, install, postinstall', async t => { |
| 27 | const getInstallScripts = mockGetInstallScripts(t) |
Tested by
no test coverage detected