Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29715c9

Browse files
authored
Merge pull request #710 from pre-commit/dont_modify_my_npmrc
Don't modify user's npmrc under test
2 parents b20aae4 + 40fd04a commit 29715c9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/repository_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ def test_additional_node_dependencies_installed(
517517
repo = Repository.create(config, store)
518518
repo.require_installed()
519519
with node.in_env(repo._prefix, 'default'):
520-
cmd_output('npm', 'config', 'set', 'global', 'true')
521-
output = cmd_output('npm', 'ls')[1]
520+
output = cmd_output('npm', 'ls', '-g')[1]
522521
assert 'lodash' in output
523522

524523

0 commit comments

Comments
 (0)