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

Function execHelpSearch

deps/npm/test/lib/commands/help-search.js:22–37  ·  view source on GitHub ↗
(t, exec = [], opts)

Source from the content-addressed store, hash-verified

20}
21
22const execHelpSearch = async (t, exec = [], opts) => {
23 const { npm, ...rest } = await loadMockNpm(t, {
24 npm: ({ other }) => ({ npmRoot: other }),
25 // docs/content is hardcoded into the glob path in the command
26 otherDirs: {
27 docs: {
28 content: docsFixtures,
29 },
30 },
31 ...opts,
32 })
33
34 await npm.exec('help-search', exec)
35
36 return { npm, output: rest.joinedOutput(), ...rest }
37}
38
39t.test('npm help-search', async t => {
40 const { output } = await execHelpSearch(t, ['exec'])

Callers 1

help-search.jsFile · 0.85

Calls 2

loadMockNpmFunction · 0.70
execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…