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

Function mockReifyWithExtras

deps/npm/test/lib/utils/reify-output.js:453–464  ·  view source on GitHub ↗
(t, reify, extras, { command, ...config } = {})

Source from the content-addressed store, hash-verified

451
452t.test('prints unreviewed install scripts summary', async t => {
453 const mockReifyWithExtras = async (t, reify, extras, { command, ...config } = {}) => {
454 const mock = await mockNpm(t, { command, config })
455 Object.defineProperty(mock.npm, 'command', {
456 get () {
457 return command
458 },
459 enumerable: true,
460 })
461 reifyOutput(mock.npm, reify, extras)
462 mock.npm.finish()
463 return mock
464 }
465
466 const baseReify = {
467 actualTree: { name: 'host', inventory: { has: () => false } },

Callers 1

reify-output.jsFile · 0.85

Calls 4

reifyOutputFunction · 0.85
mockNpmFunction · 0.50
definePropertyMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…