nvm/test
Stephen Sherratt e77cead149
Normalize paths in `nvm_tree_contains_path` before comparing
It's possible that `tree` and `node_path` both refer to the same
directory, but are lexically different. This converts both paths
into a canonical form so that any lexical-only differences are
removed.

This solves a problem where setting `NVM_DIR` to /home/user//.nvm
instead of /home/user/.nvm results in the infamous:
nvm is not compatible with the npm config "prefix" option

This adds a test that the above case no longer results in an error. An
existing test stopped failing as expected as a result, as the test set
the npm prefix to a local-directory-relative path, which resolved to
a directory inside the `NVM_DIR` when running the tests from within the
`NVM_DIR`. This test is updated to use an absolute path.
2021-03-29 09:27:48 -07:00
..
fast Normalize paths in `nvm_tree_contains_path` before comparing 2021-03-29 09:27:48 -07:00
install_script [New] install script: Allow installation from other repository also for git method 2021-01-14 00:10:19 +01:00
installation_iojs [Fix] `install`: Add missing io.js installation message 2019-01-22 15:46:29 +08:00
installation_node [New] `install`: add `-b` flag to skip building from source 2021-02-16 19:34:23 +05:30
mocks [Fix] Correct most of the wrong indentation 2018-02-26 02:20:21 +08:00
slow [Fix] `exec`: `--` should stop argument parsing 2020-11-20 13:06:28 +02:00
sourcing [Tests] add test that fails without fix for #2362 2021-01-15 14:07:47 -08:00
common.sh [Tests] add more checks to make_fake_* helpers 2019-02-23 15:24:02 -08:00