test(cost): confirm npx installs in fixtures

This commit is contained in:
ruvnet committed 2026-07-16 19:18:10 -04:00
1 parent 6d685574b9
commit 25b16cfdf2
1 file changed
+11 -2
@@ -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;
}