Jordan Harband
ee9e56582e
[Tests] `jspm` v2 beta started breaking tests; pin to < v2
2019-05-04 13:34:16 -07:00
Jordan Harband
e7a5b7992b
[meta] update repo links to point to org
2019-04-24 16:08:34 -07:00
Jordan Harband
f218a85454
[Tests] eslint 5.5+ seems to not install on node 0.10
2018-09-09 14:56:17 -07:00
Peter Dave Hello
b15709e637
Turn off wget's output in nvm_get_latest()
...
curl output is turned off by `-s` in the same place, we should unify the
behavior on wget, also, this help removes those wget outputs that can't
fit our coding style tests. cc #1739
2018-04-12 23:44:27 +08:00
Peter Dave Hello
d6fa67166c
[Fix] `reinstall-packages`: Prevent install/link when no packages found
...
Fixes #1744 .
2018-02-27 14:05:33 +08:00
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
2018-02-26 01:01:30 +08:00
Jordan Harband
71032cfaa1
[Tests] update to latest npm in this test
2018-02-08 22:53:41 -08:00
Peter Dave Hello
973dfc6d4a
[New] Dynamically detect if curl supports `--compressed`
2017-03-23 16:51:20 +08:00
Peter Dave Hello
6a3b1dd2c3
[New] Enable curl auto compression/decompression
...
Enable `--compressed` parameter on curl to automatically enable
compression on request content by sending coressponding header, if the
server side supports compression format like deflate or gzip, curl will
also decompress the content automatically, so there is no additional
works need to done manually on client side, but just enjoy the benifits
of bandwidth and time saving!
Take https://nodejs.org/dist/index.tab as an example which is last
modified on Tue, 14 Mar 2017 22:41:05 GMT, the compressed transmission
only take 4829 bytes howevet the not compressed on taks 48000 bytes,
which is about 10 times larger!
This feature can be traced back to Sep 3 2002, in curl commit:
- 64bbe9dfaf
So should be supported on various versions widely.
2017-03-23 16:51:20 +08:00
Peter Dave Hello
182a18d911
[Fix] Github should be GitHub
2017-03-09 23:02:08 +08:00
Peter Dave Hello
f7763c8ba9
[Tests] die() in tests should quote "$@" for echo
2016-11-07 03:34:36 +08:00
Qiangjun Ran
cadbbced20
[Tests] Replace all dots with backslash dots
2016-11-03 23:44:59 -07:00
Jordan Harband
f9e14b7d4d
[Fix] `nvm uninstall`: work around `nomatch` `zsh` option.
...
Fixes #1228 .
2016-10-04 01:43:24 -07:00
Jordan Harband
54cc3a383e
[Tests] set -ex options on more tests
2016-08-14 09:48:25 -07:00
Jordan Harband
876d117376
[Tests] add `nvm run --lts` tests.
2016-07-18 00:35:01 -07:00
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