test(server): resolve batching CLI fixture independently of cwd

Workspace CI runs from packages/server, while the original regression was verified from the repository root. Resolve the CLI entrypoint relative to this test file in both contexts.
This commit is contained in:
Mohamed Boudra
2026-10-21 10:40:01 +02:00
parent d4aa561956
commit 410e44b71c
@@ -1592,13 +1592,12 @@ test(
expect(report.structuredContent).toMatchObject({ deliveryStatus: "queued", serverId: aId });
expect(parentPrompts).toEqual([]);
const { resolve } = await import("node:path");
const cli = await promisify(execFile)(
process.execPath,
[
"--import",
"tsx",
resolve("packages/cli/src/index.ts"),
fileURLToPath(new URL("../../../../cli/src/index.ts", import.meta.url)),
"--host",
`127.0.0.1:${a.port}`,
"send",