Skip to content

Commit d845436

Browse files
committed
Test specific version installs for asdf-plugin-nodejs
We can cover the multiple scenarios with a single test: both specific versions and multiple versions so this installs two to cover the functionality. The default test covers the case of installing the current LTS version.
1 parent 626378f commit d845436

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
cwd=$(readlink -f "${0%/*}")
6+
7+
. "$cwd/test-utils.sh"
8+
9+
echo "Checking Node v22.23.3 is installed..."
10+
assert_command "asdf list nodejs 2>&1 | grep 22.23.3"
11+
12+
echo "Checking Node v24.21.0 is installed..."
13+
assert_command "asdf list nodejs 2>&1 | grep 24.21.0"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"multiple-versions": {
3+
"image": "ghcr.io/thoughtbot/devcontainers/images/debian",
4+
"features": {
5+
"asdf-plugin-nodejs": {
6+
"versions": "v22.23.3,v24.21.0"
7+
}
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)