Skip to content

Commit 5c3e70c

Browse files
committed
test: skip internet for test-npm-install
Disabling any internet-required features (namely audit and update-notifer) in order for the test to work without an internet connection. - Fixes: #36895
1 parent 9886d5e commit 5c3e70c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-npm-install.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const env = { ...process.env,
4242
PATH: path.dirname(process.execPath),
4343
NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'),
4444
NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'),
45+
NPM_CONFIG_AUDIT: false,
46+
NPM_CONFIG_UPDATE_NOTIFIER: false,
4547
HOME: homeDir,
4648
};
4749

0 commit comments

Comments
 (0)