mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Don't modify user's npmrc under test
This commit is contained in:
parent
b20aae4fe2
commit
40fd04aec3
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue