fix: align declared node version floor
This commit is contained in:
@@ -9,10 +9,10 @@ import {
|
||||
} from "../src/system/node-version.js";
|
||||
|
||||
test("isSupportedNodeVersion enforces the exact minimum floor", () => {
|
||||
assert.equal(isSupportedNodeVersion("20.18.1"), true);
|
||||
assert.equal(isSupportedNodeVersion("20.19.0"), true);
|
||||
assert.equal(isSupportedNodeVersion("20.19.0"), true);
|
||||
assert.equal(isSupportedNodeVersion("21.0.0"), true);
|
||||
assert.equal(isSupportedNodeVersion("20.18.0"), false);
|
||||
assert.equal(isSupportedNodeVersion("20.18.1"), false);
|
||||
assert.equal(isSupportedNodeVersion("18.17.0"), false);
|
||||
});
|
||||
|
||||
@@ -30,6 +30,6 @@ test("ensureSupportedNodeVersion throws a guided upgrade message", () => {
|
||||
test("unsupported version guidance reports the detected version", () => {
|
||||
const lines = getUnsupportedNodeVersionLines("18.17.0");
|
||||
|
||||
assert.equal(lines[0], "feynman requires Node.js 20.18.1 or later (detected 18.17.0).");
|
||||
assert.equal(lines[0], "feynman requires Node.js 20.19.0 or later (detected 18.17.0).");
|
||||
assert.ok(lines.some((line) => line.includes("curl -fsSL https://feynman.is/install | bash")));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user