11cb0ef41Sopenharmony_ciconst t = require('tap') 21cb0ef41Sopenharmony_ciconst { load: loadMockNpm } = require('../../fixtures/mock-npm') 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_cit.test('prefix', async (t) => { 51cb0ef41Sopenharmony_ci const { joinedOutput, npm } = await loadMockNpm(t) 61cb0ef41Sopenharmony_ci await npm.exec('root', []) 71cb0ef41Sopenharmony_ci t.equal( 81cb0ef41Sopenharmony_ci joinedOutput(), 91cb0ef41Sopenharmony_ci npm.dir, 101cb0ef41Sopenharmony_ci 'outputs npm.dir' 111cb0ef41Sopenharmony_ci ) 121cb0ef41Sopenharmony_ci}) 13