From 30a8b0ce80bae43378fbc5fe8ed689a7be2d706c Mon Sep 17 00:00:00 2001 From: salman Date: Thu, 29 Oct 2026 21:13:08 +0100 Subject: [PATCH] Keep setup-node available in isolated packaging tests --- tests/runtime-validation.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/runtime-validation.test.js b/tests/runtime-validation.test.js index 6644790..263740d 100644 --- a/tests/runtime-validation.test.js +++ b/tests/runtime-validation.test.js @@ -337,6 +337,8 @@ try { // Hide any host fpm so the fixture actually tests cache selection. const fakeBin = path.join(temporary, 'fake-bin'); fs.mkdirSync(fakeBin); + // setup-node may install outside /usr/bin; retain Node in this isolated PATH. + fs.symlinkSync(process.execPath, path.join(fakeBin, 'node')); fs.writeFileSync(path.join(fakeBin, 'fpm'), '#!/bin/sh\nexit 127\n', { mode: 0o755 }); const packageRuntime = createRuntime('package-runtime'); for (const layout of ['fpm@2/fpm-test/fpm', 'fpm/fpm-test/fpm']) {