diff --git a/test/npm/test-npm-install.js b/test/npm/test-npm-install.js index e13e4953..812774a6 100644 --- a/test/npm/test-npm-install.js +++ b/test/npm/test-npm-install.js @@ -46,7 +46,7 @@ test('npm-install: custom install command', async (t) => { const context = npmContext( { name: 'omg-i-pass-with-install-param', - install: ['install', '--extra-param'] + envVar: { npm_config_extra_param: 'true' } }, packageManagers, sandbox, diff --git a/test/test-citgm.js b/test/test-citgm.js index 23566c4c..a35abeda 100644 --- a/test/test-citgm.js +++ b/test/test-citgm.js @@ -40,6 +40,7 @@ test('citgm: omg-i-pass from git url', (t) => { const mod = 'git+https://github.com/MylesBorins/omg-i-pass'; const tester = new Tester(mod, options); + tester.module.envVar = { npm_config_allow_git: 'all' }; tester .on('start', (name) => { t.equal(name, mod, 'it should be the raw URL');