From 7c5bb7c4ae938ce3734006c4a171a3bc89e1488b Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Mon, 13 Jul 2026 12:00:49 +0200 Subject: [PATCH] fix(hub): run CLI tests from workspace source --- .../src/server/hub/test-utils/relationship-harness.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/server/src/server/hub/test-utils/relationship-harness.ts b/packages/server/src/server/hub/test-utils/relationship-harness.ts index 5d22230746..3a48da799d 100644 --- a/packages/server/src/server/hub/test-utils/relationship-harness.ts +++ b/packages/server/src/server/hub/test-utils/relationship-harness.ts @@ -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;