nvm-sh-nvm/test/fast/Listing versions
Peter Dave Hello 29a652f90f
[patch] show system Node.js version in nvm ls
Normalize `nvm_version` output when `nvm_ls` returns "system vX" so alias and .nvmrc resolutions treat system correctly.

Add fast tests for system alias behavior in `nvm ls`, `nvm use`, and `nvm which`.
2026-01-25 18:19:50 +08:00
..
Running 'nvm ls 0.0.2' should display only version 0.0.2 [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls 0.2' should display only 0.2.x versions [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls --no-alias' does not call into nvm_alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls --no-alias' with a pattern errors [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls default' should show system version when available [patch] show system Node.js version in nvm ls 2026-01-25 18:19:50 +08:00
Running 'nvm ls foo' should return a nonzero exit code when not found [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls io' should return NA [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls node_' should return a nonzero exit code when not found [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls stable' and 'nvm ls unstable' should return the appropriate implicit alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls system' should include 'system' when appropriate [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' calls into nvm_alias [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' should display all installed versions [patch] show system Node.js version in nvm ls 2026-01-25 18:19:50 +08:00
Running 'nvm ls' should filter out '.nvm' [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' should filter out 'versions' [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' should include 'system' when appropriate [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' should list versions in the 'versions' directory [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' should not show a trailing slash [patch] show system Node.js version in nvm ls 2026-01-25 18:19:50 +08:00
Running 'nvm ls' with node-like versioning vx.x.x should only list a matched version [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
Running 'nvm ls' with nounset should not fail [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00
teardown [Tests] use rimraf over rmdir in teardowns 2019-02-27 10:50:59 +01:00
Using a nonstandard IFS should not break [Tests] set $_ before sourcing nvm.sh in fast tests 2026-01-26 21:41:57 -08:00