nvm-sh-nvm/test/slow
Jordan Harband 14d01c6877
[Tests] add try/try_err helpers; convert tests to use them
Add `try` and `try_err` helper functions to `test/common.sh` that capture stdout/stderr and exit code from a single invocation, eliminating duplicate command executions in tests.
Convert all existing tests that used the `OUTPUT`/`EXIT_CODE` double-invocation pattern to use the new helpers.
Also fixes a pre-existing bug in the `nvm_die_on_prefix` test where ASCII apostrophes were used instead of U+2019 to match nvm.sh output.
2026-03-13 15:26:07 -04:00
..
nvm exec [Tests] fix broken tests exposed by 863bd63 2024-08-27 12:46:40 -07:00
nvm reinstall-packages [Fix] reinstall-packages: do not reinstall corepack 2025-03-11 13:16:58 -07:00
nvm run [Fix] nvm install: show proper version in .nvmrc install instructions 2022-03-22 18:58:18 +05:30
nvm uninstall [Tests] temporarily skip this failing travis test to unblock progress 2025-02-03 10:50:19 -08:00
nvm use [Tests] add try/try_err helpers; convert tests to use them 2026-03-13 15:26:07 -04:00
nvm_get_latest [Tests] add try/try_err helpers; convert tests to use them 2026-03-13 15:26:07 -04:00
Running 'nvm current' should display current nvm environment [meta] Rename some files to be more cross platform 2021-01-04 00:49:05 +01:00