Don't modify user's npmrc under test

This commit is contained in:
Anthony Sottile 2018-02-24 13:50:15 -08:00
parent b20aae4fe2
commit 40fd04aec3

View file

@ -517,8 +517,7 @@ def test_additional_node_dependencies_installed(
repo = Repository.create(config, store)
repo.require_installed()
with node.in_env(repo._prefix, 'default'):
cmd_output('npm', 'config', 'set', 'global', 'true')
output = cmd_output('npm', 'ls')[1]
output = cmd_output('npm', 'ls', '-g')[1]
assert 'lodash' in output