File tree Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ $CachePath = 'C:\npm\cache'
1010New-Item - Path $PrefixPath - Force - ItemType Directory
1111New-Item - Path $CachePath - Force - ItemType Directory
1212
13- Choco- Install - PackageName nodejs- lts - ArgumentList " --force"
13+ $defaultVersion = (Get-ToolsetContent ).node.default
14+ Choco- Install - PackageName nodejs - ArgumentList " --version=$defaultVersion "
1415
1516Add-MachinePathItem $PrefixPath
1617$env: Path = Get-MachinePath
Original file line number Diff line number Diff line change @@ -16,4 +16,10 @@ Describe "Node.JS" {
1616 $Test | Should - ReturnZeroExitCode
1717 }
1818 }
19+
20+ Context " Node.js version" {
21+ It " Node.js version should correspond to the version in the toolset" {
22+ node -- version | Should - BeLike " v$ ( (Get-ToolsetContent ).node.default) *"
23+ }
24+ }
1925}
Original file line number Diff line number Diff line change 421421 "args" : [ " --installargs" , " ADD_CMAKE_TO_PATH=\" System\" " ]
422422 }
423423 ]
424+ },
425+ "node" : {
426+ "default" : " 14.18.1"
424427 }
425428}
Original file line number Diff line number Diff line change 452452 "args" : [ " --installargs" , " ADD_CMAKE_TO_PATH=\" System\" " ]
453453 }
454454 ]
455+ },
456+ "node" : {
457+ "default" : " 14.18.1"
455458 }
456459}
Original file line number Diff line number Diff line change 289289 "args" : [ " --installargs" , " ADD_CMAKE_TO_PATH=\" System\" " ]
290290 }
291291 ]
292+ },
293+ "node" : {
294+ "default" : " 14.18.1"
292295 }
293296}
You can’t perform that action at this time.
0 commit comments