Skip to content
Myr

[Tests] `nvm install --reinstall-packages-from`: mock the remote version instead of fetching it

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 52a1e55 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • tests:+3 added−0 removed

1 file+3 added−0 removed

modified:test/fast/Running 'nvm install' with '--reinstall-packages-from' requires a valid version+3 added
3 unmodified lines
45die () { echo "$@" ; cleanup ; exit 1; }6cleanup () {7 rm -rf "${NVM_DIR}/v0.10.4"8 unset -f nvm_remote_version9}1011export NVM_DIR="$(cd ../.. && pwd)"1213: nvm.sh14\. ../../nvm.sh15\. ../common.sh1617nvm_remote_version() { nvm_echo "${1-}"; }1819make_fake_node v0.10.42021nvm deactivate >/dev/null 2>&122
41 unmodified lines