@@ -9,16 +9,16 @@ use test_support::matchers::execs;
99fn install_node ( ) {
1010 let p = temp_project ( ) . build ( ) ;
1111
12- assert_that ! ( p. volta( "install node@12.16.2 " ) , execs( ) . with_status( 0 ) ) ;
12+ assert_that ! ( p. volta( "install node@14.15.4 " ) , execs( ) . with_status( 0 ) ) ;
1313
1414 assert_that ! (
1515 p. node( "--version" ) ,
16- execs( ) . with_status( 0 ) . with_stdout_contains( "v12.16.2 " )
16+ execs( ) . with_status( 0 ) . with_stdout_contains( "v14.15.4 " )
1717 ) ;
1818
19- assert ! ( p. node_version_is_fetched( "12.16.2 " ) ) ;
20- assert ! ( p. node_version_is_unpacked( "12.16.2 " ) ) ;
21- p. assert_node_version_is_installed ( "12.16.2 " ) ;
19+ assert ! ( p. node_version_is_fetched( "14.15.4 " ) ) ;
20+ assert ! ( p. node_version_is_unpacked( "14.15.4 " ) ) ;
21+ p. assert_node_version_is_installed ( "14.15.4 " ) ;
2222}
2323
2424#[ test]
@@ -34,15 +34,15 @@ fn install_node_lts() {
3434fn install_node_concurrent ( ) {
3535 let p = temp_project ( ) . build ( ) ;
3636
37- let install = p. volta ( "install node@12. 14.0 " ) ;
37+ let install = p. volta ( "install node@14.17.2 " ) ;
3838 let run = p. node ( "--version" ) ;
3939
4040 let concurrent_thread = thread:: spawn ( move || {
4141 assert_that ! ( install, execs( ) . with_status( 0 ) ) ;
4242 assert_that ! ( run, execs( ) . with_status( 0 ) ) ;
4343 } ) ;
4444
45- assert_that ! ( p. volta( "install node@12. 14.0 " ) , execs( ) . with_status( 0 ) ) ;
45+ assert_that ! ( p. volta( "install node@14.17.2 " ) , execs( ) . with_status( 0 ) ) ;
4646 assert_that ! ( p. node( "--version" ) , execs( ) . with_status( 0 ) ) ;
4747
4848 assert ! ( concurrent_thread. join( ) . is_ok( ) ) ;
@@ -52,7 +52,7 @@ fn install_node_concurrent() {
5252fn install_yarn ( ) {
5353 let p = temp_project ( ) . build ( ) ;
5454
55- assert_that ! ( p. volta( "install node@12.16.3 " ) , execs( ) . with_status( 0 ) ) ;
55+ assert_that ! ( p. volta( "install node@14.15.2 " ) , execs( ) . with_status( 0 ) ) ;
5656 assert_that ! ( p
. volta
( "install [email protected] " ) , execs
( ) . with_status
( 0 ) ) ; 5757
5858 assert_that ! (
@@ -69,7 +69,7 @@ fn install_yarn() {
6969fn install_old_yarn ( ) {
7070 let p = temp_project ( ) . build ( ) ;
7171
72- assert_that ! ( p. volta( "install node@10.21 .0" ) , execs( ) . with_status( 0 ) ) ;
72+ assert_that ! ( p. volta( "install node@14.11 .0" ) , execs( ) . with_status( 0 ) ) ;
7373 // Yarn 1.9.2 is old enough that it is no longer on the first page of results from the GitHub API
7474 assert_that ! ( p
. volta
( "install [email protected] " ) , execs
( ) . with_status
( 0 ) ) ; 7575
@@ -87,7 +87,7 @@ fn install_old_yarn() {
8787fn install_yarn_concurrent ( ) {
8888 let p = temp_project ( ) . build ( ) ;
8989
90- assert_that ! ( p. volta( "install node@12.14 .0" ) , execs( ) . with_status( 0 ) ) ;
90+ assert_that ! ( p. volta( "install node@14.19 .0" ) , execs( ) . with_status( 0 ) ) ;
9191
9292 let install = p
. volta ( "install [email protected] " ) ; 9393 let run = p. yarn ( "--version" ) ;
@@ -107,30 +107,30 @@ fn install_yarn_concurrent() {
107107fn install_npm ( ) {
108108 let p = temp_project ( ) . build ( ) ;
109109
110- // node 13.10 .0 is bundled with npm 6.13.7
111- assert_that ! ( p. volta( "install node@13.10 .0" ) , execs( ) . with_status( 0 ) ) ;
110+ // node 17.6 .0 is bundled with npm 8.5.1
111+ assert_that ! ( p. volta( "install node@17.6 .0" ) , execs( ) . with_status( 0 ) ) ;
112112 assert_that ! (
113113 p. npm( "--version" ) ,
114- execs( ) . with_status( 0 ) . with_stdout_contains( "6.13.7 " )
114+ execs( ) . with_status( 0 ) . with_stdout_contains( "8.5.1 " )
115115 ) ;
116116
117117 // install npm 6.8.0 and verify that is installed correctly
118- assert_that ! ( p. volta( "install npm@6.14.3 " ) , execs( ) . with_status( 0 ) ) ;
119- assert ! ( p. npm_version_is_fetched( "6.14.3 " ) ) ;
120- assert ! ( p. npm_version_is_unpacked( "6.14.3 " ) ) ;
121- p. assert_npm_version_is_installed ( "6.14.3 " ) ;
118+ assert_that ! ( p. volta( "install npm@8.5.5 " ) , execs( ) . with_status( 0 ) ) ;
119+ assert ! ( p. npm_version_is_fetched( "8.5.5 " ) ) ;
120+ assert ! ( p. npm_version_is_unpacked( "8.5.5 " ) ) ;
121+ p. assert_npm_version_is_installed ( "8.5.5 " ) ;
122122
123123 assert_that ! (
124124 p. npm( "--version" ) ,
125- execs( ) . with_status( 0 ) . with_stdout_contains( "6.14.3 " )
125+ execs( ) . with_status( 0 ) . with_stdout_contains( "8.5.5 " )
126126 ) ;
127127}
128128
129129#[ test]
130130fn install_npm_concurrent ( ) {
131131 let p = temp_project ( ) . build ( ) ;
132132
133- assert_that ! ( p. volta( "install node@12.14 .0" ) , execs( ) . with_status( 0 ) ) ;
133+ assert_that ! ( p. volta( "install node@14.5 .0" ) , execs( ) . with_status( 0 ) ) ;
134134
135135 let install = p
. volta ( "install [email protected] " ) ; 136136 let run = p. npm ( "--version" ) ;
@@ -160,7 +160,7 @@ fn install_package() {
160160 let p = temp_project ( ) . build ( ) ;
161161
162162 // have to install node first, because we need npm
163- assert_that ! ( p. volta( "install node@12 .11.1 " ) , execs( ) . with_status( 0 ) ) ;
163+ assert_that ! ( p. volta( "install node@14 .11.0 " ) , execs( ) . with_status( 0 ) ) ;
164164
165165 assert_that ! ( p
. volta
( "install [email protected] " ) , execs
( ) . with_status
( 0 ) ) ; 166166 assert ! ( p. shim_exists( "cowsay" ) ) ;
@@ -176,7 +176,7 @@ fn install_package() {
176176fn install_package_concurrent ( ) {
177177 let p = temp_project ( ) . build ( ) ;
178178
179- assert_that ! ( p. volta( "install node@12 .14.0" ) , execs( ) . with_status( 0 ) ) ;
179+ assert_that ! ( p. volta( "install node@14 .14.0" ) , execs( ) . with_status( 0 ) ) ;
180180
181181 let install = p
. volta ( "install [email protected] " ) ; 182182 let run = p. exec_shim ( "cowsay" , "hello" ) ;
@@ -197,7 +197,7 @@ fn install_scoped_package() {
197197 let p = temp_project ( ) . build ( ) ;
198198
199199 // have to install node first, because we need npm
200- assert_that ! ( p. volta( "install node@12. 14.1 " ) , execs( ) . with_status( 0 ) ) ;
200+ assert_that ! ( p. volta( "install node@14.15.0 " ) , execs( ) . with_status( 0 ) ) ;
201201
202202 assert_that ! ( p
. volta
( "install @wdio/[email protected] " ) , execs
( ) . with_status
( 0 ) ) ; 203203 assert ! ( p. shim_exists( "wdio" ) ) ;
@@ -214,7 +214,7 @@ fn install_package_tag_version() {
214214 let p = temp_project ( ) . build ( ) ;
215215
216216 // have to install node first, because we need npm
217- assert_that ! ( p. volta( "install node@12.12 .0" ) , execs( ) . with_status( 0 ) ) ;
217+ assert_that ! ( p. volta( "install node@14.8 .0" ) , execs( ) . with_status( 0 ) ) ;
218218
219219 assert_that ! ( p
. volta
( "install [email protected] " ) , execs
( ) . with_status
( 0 ) ) ; 220220 assert ! ( p. shim_exists( "elm" ) ) ;
0 commit comments