fix(test): stabilize npm runner path assertion

This commit is contained in:
Vincent Koc
2026-03-24 12:32:01 -07:00
parent 805bff6e7e
commit 87919dec2c

View File

@@ -5,8 +5,8 @@ import { resolveNpmRunner } from "../../scripts/stage-bundled-plugin-runtime-dep
describe("resolveNpmRunner", () => {
it("anchors npm staging to the active node toolchain when npm-cli.js exists", () => {
const execPath = "/Users/test/.nodenv/versions/24.13.0/bin/node";
const expectedNpmCliPath = path.resolve(
path.dirname(execPath),
const expectedNpmCliPath = path.posix.resolve(
path.posix.dirname(execPath),
"../lib/node_modules/npm/bin/npm-cli.js",
);