mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
ci: download exact version of node specifed (#20936)
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { spawnSync, which } from "bun";
|
||||
import { describe, expect, it } from "bun:test";
|
||||
import { familySync } from "detect-libc";
|
||||
import { existsSync, readFileSync, writeFileSync } from "fs";
|
||||
import { bunEnv, bunExe, isMacOS, isMusl, isWindows, tmpdirSync } from "harness";
|
||||
import { bunEnv, bunExe, isMacOS, isWindows, tmpdirSync } from "harness";
|
||||
import { basename, join, resolve } from "path";
|
||||
|
||||
expect.extend({
|
||||
@@ -1134,7 +1134,7 @@ it("process.versions", () => {
|
||||
expect(process.versions.modules).toEqual("137");
|
||||
});
|
||||
|
||||
it.todoIf(isMacOS || isMusl)("should be the node version on the host that we expect", async () => {
|
||||
it.todoIf(isMacOS)("should be the node version on the host that we expect", async () => {
|
||||
const subprocess = Bun.spawn({
|
||||
cmd: ["node", "--version"],
|
||||
stdout: "pipe",
|
||||
@@ -1144,6 +1144,6 @@ it.todoIf(isMacOS || isMusl)("should be the node version on the host that we exp
|
||||
});
|
||||
|
||||
let [out, exited] = await Promise.all([new Response(subprocess.stdout).text(), subprocess.exited]);
|
||||
expect(out.trim()).toEqual(isWindows ? "v24.3.0" : "v24.4.0"); // TODO: this *should* be v24.3.0 but scripts/bootstrap.sh needs to be enhanced to do so
|
||||
expect(out.trim()).toEqual("v24.3.0");
|
||||
expect(exited).toBe(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user