1const t = require('tap') 2const { load: loadMockNpm } = require('../../fixtures/mock-npm') 3 4t.test('prefix', async t => { 5 const { joinedOutput, npm } = await loadMockNpm(t) 6 await npm.exec('prefix', []) 7 t.equal( 8 joinedOutput(), 9 npm.prefix, 10 'outputs npm.prefix' 11 ) 12}) 13