From 25b16cfdf2bd78da4a217392371eddfc76d3db2a Mon Sep 17 00:00:00 2001 From: ruvnet Date: Thu, 16 Jul 2026 19:18:10 -0400 Subject: [PATCH] test(cost): confirm npx installs in fixtures --- .../scripts/test-health-integration.mjs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/ruflo-cost-tracker/scripts/test-health-integration.mjs b/plugins/ruflo-cost-tracker/scripts/test-health-integration.mjs index 1869d2ee72..a8b159f87a 100755 --- a/plugins/ruflo-cost-tracker/scripts/test-health-integration.mjs +++ b/plugins/ruflo-cost-tracker/scripts/test-health-integration.mjs @@ -49,10 +49,19 @@ function assert(cond, label) { function memStore(cwd, key, valueObj) { const r = spawnSync('npx', [ - '@claude-flow/cli@latest', 'memory', 'store', + '-y', '@claude-flow/cli@latest', 'memory', 'store', '--namespace', NS, '--key', key, '--value', JSON.stringify(valueObj), - ], { cwd, stdio: ['ignore', 'pipe', 'pipe'], encoding: 'utf-8' }); + ], { + cwd, + stdio: ['ignore', 'pipe', 'pipe'], + encoding: 'utf-8', + shell: process.platform === 'win32', + }); + if (r.status !== 0) { + const detail = r.error?.message || r.stderr?.trim() || `exit status ${r.status}`; + console.error(` → npx memory store failed: ${detail}`); + } return r.status === 0; }