From 40fd04aec3e5f57cb0c4222f1c0e2f97a0c7bd6f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 24 Feb 2018 13:50:15 -0800 Subject: [PATCH] Don't modify user's npmrc under test --- tests/repository_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/repository_test.py b/tests/repository_test.py index 068d6bac..0123ce4c 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -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