Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(plugins): parse the JSX fixture result prefix correctly

Zengwenqi96d9bf098c22
diff --git a/scripts/e2e-plugin-jsx-runtime.mjs b/scripts/e2e-plugin-jsx-runtime.mjs
index 26f3684b7..3fbc79d11 100644
--- a/scripts/e2e-plugin-jsx-runtime.mjs
+++ b/scripts/e2e-plugin-jsx-runtime.mjs
@@ -53,7 +53,7 @@ try {
const code = await new Promise((done, reject) => { child.on("error", reject); child.on("exit", done); });
clearTimeout(timer);
assert.equal(code, 0, output);
- const result = JSON.parse(output.split("\n").find(line => line.startsWith("JSX_SMOKE ")).slice(12));
+ const result = JSON.parse(output.split("\n").find(line => line.startsWith("JSX_SMOKE ")).slice("JSX_SMOKE ".length));
assert.equal(result.ok, true);
console.log("PASS automatic JSX plugin activation with host hooks and context", JSON.stringify(result));
} finally {