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

Function testComp

deps/npm/test/lib/commands/cache.js:317–319  ·  view source on GitHub ↗
(argv, expect)

Source from the content-addressed store, hash-verified

315 const { completion } = cache
316
317 const testComp = (argv, expect) => {
318 return t.resolveMatch(completion({ conf: { argv: { remain: argv } } }), expect, argv.join(' '))
319 }
320
321 await Promise.all([
322 testComp(['npm', 'cache'], ['add', 'clean', 'verify']),

Callers 1

cache.jsFile · 0.70

Calls 2

completionFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected