Jordan Harband
58a82a1d31
[Tests] add `nvm exec --lts` tests.
2016-07-17 19:54:10 -07:00
Jordan Harband
42fedf6bc9
[Tests] add some basic `nvm use --lts` tests
2016-07-03 08:37:03 -07:00
Jordan Harband
b2c5616d7a
[Tests] avoid accidental command execution in test failure message.
2016-07-17 19:54:26 -07:00
Quildreen Motta
730b253174
Updates tests for the new output messages
2016-07-05 21:40:45 -03:00
Jordan Harband
73aa35f508
[Tests] use `$NVM_DIR` instead of relative paths
2016-06-26 15:52:26 -07:00
Jordan Harband
6fb94e0dab
[fix] `nvm exec`: show “io.js” for io.js versions.
2016-05-04 00:33:56 -07:00
Jordan Harband
09f86b0e6e
[Refactor] Create and use `nvm_is_version_installed`
2016-04-27 17:11:16 -07:00
Luke Childs
5970a06b19
Add slow test to check nvm uninstall with file permission error
2016-04-18 22:08:40 +01:00
Luke Childs
6fb528f4e4
Add slow test to check nvm uninstall
2016-04-18 21:17:44 +01:00
Keiichiro Ui
b76d43e9f8
Fix `nvm-exec` for the commands includes white-spaces
2015-12-24 19:48:35 +09:00
Jordan Harband
cb033adc6f
nvm run: use common code path for "ensure version installed"
2015-10-07 18:08:48 -07:00
Jordan Harband
1458de7293
Ensure that if `npm config get prefix` is set to something outside `nvm`, that `nvm use` refuses to work.
...
Fixes #606 .
2015-09-21 04:47:37 -07:00
Alan Quach
657192dd27
Adding unit tests for --silent
2015-07-10 10:27:35 +10:00
Jordan Harband
7bce6c6c68
`nvm reinstall-packages` should install the same version it had before.
2015-06-29 00:04:59 -07:00
Jordan Harband
fe044c5e3b
`spawn-sync` now dedupes to the top level with this group of packages.
2015-06-07 01:10:55 -07:00
Jordan Harband
a4f89c6223
Make sure to ignore `~/.curlrc` if it exists.
2015-05-01 02:00:49 -07:00
HE Shi-Jun
3d69cf7437
update testcase
2015-03-17 15:54:50 +08:00
HE Shi-Jun
14b23bfa95
fix reinstall-packages test
2015-03-15 06:21:35 +08:00
Jordan Harband
be56ff3b2e
Make sure multiple `nvm run` arguments get passed through to node/iojs properly.
...
Fixes #641 .
2015-02-07 10:09:37 -08:00
Jordan Harband
0b4c1e14cf
Ensure that `nvm run 0.12 --version` errors out sensibly when 0.12 isn't installed.
2015-02-01 13:02:46 -08:00
Jordan Harband
a6819b3018
Fix `nvm ls v1.0.3` so that it locates `iojs-v1.0.3`.
...
Also fix `nvm uninstall v1.0.3` so it won't uninstall it if it's the current version.
node versions will still take priority if there's ever a version overlap.
2015-01-25 12:31:19 -08:00
Jordan Harband
39a75e616d
Add support for `nvm use node`, `nvm use iojs`, `nvm ls node`, and `nvm ls iojs`
...
Also add `nvm_version node` and `nvm_version iojs` support.
2015-01-18 20:45:02 -06:00
Jordan Harband
952096d034
Add iojs support to "install"
2015-01-13 17:52:18 -08:00
Jordan Harband
8ae7b33632
Improving failure messages on this test
2015-01-17 11:52:06 -06:00
Jordan Harband
eb8c3414dd
Move `nvm_get_latest` tests from "installation" to "slow"
2015-01-17 11:52:06 -06:00
Jordan Harband
78c1f2cf9d
Split up this `nvm current` and `node 0.6.21-pre` test into separate tests.
2015-01-16 15:36:32 -06:00
Jordan Harband
e728577627
Rename `nvm copy-packages` to `nvm reinstall-packages`, and `--copy-packages-from` install option to `--reinstall-packages-from`
...
For #341 . `nvm copy-packages` and install option `--copy-packages-from` will continue to be supported for for at least a full minor release version.
2014-11-22 13:22:24 -08:00
Jordan Harband
6c89e96f67
Ensure that we don't try to uninstall the current version of node in test teardowns.
2014-10-09 00:19:14 -07:00
Jordan Harband
ba08fa31d8
Moving actual installation tests to their own suite.
2014-09-14 17:24:30 -07:00
Jordan Harband
243fc04164
Fixing these test files that have never been run
2014-09-14 16:04:04 -07:00
Jordan Harband
a80f958a1e
All 4 of these test files should be executable.
2014-09-14 16:03:55 -07:00
Jordan Harband
ff1781b95d
Make `nvm copy-packages` refuse to copy packages from the currently activated version.
2014-09-05 00:42:59 -07:00
Jordan Harband
214ce8853b
`npm ls` has a bug in some versions when "--parseable --depth=0" is used together.
2014-09-02 15:47:45 -07:00
Jordan Harband
4b3d6f1760
Properly pass a space-separated list of packages to `npm install`
...
Fixes #490 .
2014-08-22 02:44:04 -07:00
Jordan Harband
56c40cfa3c
Don't try to copy `npm` itself with `nvm copy-packages`.
...
Fixes #504 .
2014-08-22 02:19:56 -07:00
Jordan Harband
5048a78376
Add special handling for node v0.6.21-pre
2014-08-26 23:53:17 -07:00
Jordan Harband
b8fe75e93a
Tests for `nvm copy-packages`
2014-08-16 01:58:39 -07:00
Jordan Harband
1fa2acf5a7
Adding nvm exec tests.
2014-08-02 15:43:04 -07:00
Jordan Harband
4512337c11
Adding a slow `nvm current` test, since it needs an installed version of node.
2014-07-20 23:41:11 -07:00
Jordan Harband
bb01513eba
Making sure there's test coverage for `nvm i`
2014-06-22 09:18:41 -07:00
Koen Punt
a318ddf9b3
redirect stderr to stdout in test
2014-06-17 01:22:17 +02:00
Jordan Harband
ba1be9b4ea
Making `nvm install` use the version, even if it's already installed. Fixes #410
2014-05-05 23:32:39 -07:00
Jordan Harband
c77be55cdc
Updating "nvm run" tests.
2014-05-04 00:39:32 -07:00
Jordan Harband
e195fccdb7
Escaping backticks
2014-05-03 23:29:21 -07:00
Jordan Harband
20953ab04c
Make sure `nvm run` works without a version argument when .nvmrc specifies a version.
2014-04-20 00:28:07 -07:00
Jordan Harband
4cf940153c
Use node 0.9 for these testsso that people aren't likely to have it installed
2014-04-19 23:41:36 -07:00
Jordan Harband
bf8abf1052
Make sure `nvm install` works without a version argument when .nvmrc specifies a version.
2014-04-19 17:07:00 -07:00
Jordan Harband
eb6031cb58
Clean up after existing `nvm install` tests.
2014-04-19 17:00:06 -07:00
Jordan Harband
55a6f1f06e
Organizing `nvm install` tests better.
2014-04-19 16:48:43 -07:00
Jordan Harband
b15ea07067
Don't clobber the latest version of 0.10 for tests.
2014-04-19 16:46:17 -07:00