From 87919dec2c6ea64790c8c5ea85dced45b12db036 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 24 Mar 2026 12:32:01 -0700 Subject: [PATCH] fix(test): stabilize npm runner path assertion --- test/scripts/stage-bundled-plugin-runtime-deps.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/scripts/stage-bundled-plugin-runtime-deps.test.ts b/test/scripts/stage-bundled-plugin-runtime-deps.test.ts index 3570e1771af..0c675bdec66 100644 --- a/test/scripts/stage-bundled-plugin-runtime-deps.test.ts +++ b/test/scripts/stage-bundled-plugin-runtime-deps.test.ts @@ -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", );