diff --git a/lib/nodelix/version_manager.ex b/lib/nodelix/version_manager.ex index 1a80b98..49581f6 100644 --- a/lib/nodelix/version_manager.ex +++ b/lib/nodelix/version_manager.ex @@ -1,6 +1,6 @@ defmodule Nodelix.VersionManager do # https://nodejs.org/en/about/previous-releases - @latest_lts_version "20.10.0" + @latest_lts_version "20.12.2" @default_archive_base_url "https://nodejs.org/dist/v$version/node-v$version-$target.$ext" @signed_checksums_base_url "https://nodejs.org/dist/v$version/SHASUMS256.txt.asc" diff --git a/test/nodelix_test.exs b/test/nodelix_test.exs index 73013b3..e690142 100644 --- a/test/nodelix_test.exs +++ b/test/nodelix_test.exs @@ -1,7 +1,7 @@ defmodule NodelixTest do use ExUnit.Case, async: true - @version Nodelix.VersionManager.latest_lts_version() + @latest_lts_version Nodelix.VersionManager.latest_lts_version() setup_all do File.rm_rf!(Path.join([Mix.Project.build_path(), "nodejs"])) @@ -11,13 +11,13 @@ defmodule NodelixTest do test "run without profile" do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--version"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "run on another profile" do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--profile", "test_profile"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "installs and runs multiple versions" do @@ -27,13 +27,13 @@ defmodule NodelixTest do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--version"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "re-installs with force flag" do assert ExUnit.CaptureLog.capture_log(fn -> assert Mix.Task.rerun("nodelix.install", ["--force"]) == :ok - end) =~ "Succesfully installed Node.js v#{@version}" + end) =~ "Succesfully installed Node.js v#{@latest_lts_version}" end test "installs with custom URL" do