mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Merge pull request #710 from pre-commit/dont_modify_my_npmrc
Don't modify user's npmrc under test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user