fix(hub): run CLI tests from workspace source

This commit is contained in:
Mohamed Boudra
2026-07-13 12:00:49 +02:00
parent 1bbc8fee1d
commit 7c5bb7c4ae
@@ -1046,7 +1046,16 @@ export class HubRelationshipHarness {
const entrypoint = path.join(import.meta.dirname, "../../test-utils/hub-cli-entry.ts");
const { stdout } = await execFileAsync(
process.execPath,
["--import", "tsx", entrypoint, ...args, "--host", this.host, "--json"],
[
"--conditions=source",
"--import",
"tsx",
entrypoint,
...args,
"--host",
this.host,
"--json",
],
{ cwd: REPOSITORY_ROOT, env: { ...process.env, NO_COLOR: "1" } },
);
const parsed = JSON.parse(stdout) as unknown;