(t, exec = [], opts)
| 20 | } |
| 21 | |
| 22 | const 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 | |
| 39 | t.test('npm help-search', async t => { |
| 40 | const { output } = await execHelpSearch(t, ['exec']) |
no test coverage detected
searching dependent graphs…