fix(hub): isolate CLI test entrypoint

This commit is contained in:
Mohamed Boudra
2026-07-13 11:48:38 +02:00
parent 51de9660f9
commit 1bbc8fee1d
2 changed files with 2 additions and 2 deletions
@@ -1043,7 +1043,7 @@ export class HubRelationshipHarness {
}
private async runCli(args: string[]): Promise<Record<string, unknown>> {
const entrypoint = path.join(import.meta.dirname, "hub-cli-entry.ts");
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"],
@@ -1,4 +1,4 @@
import { createHubCommand } from "../../../../../cli/src/commands/hub/index.js";
import { createHubCommand } from "../../../../cli/src/commands/hub/index.js";
const argv = [process.argv[0] ?? "node", process.argv[1] ?? "paseo", ...process.argv.slice(3)];
await createHubCommand().parseAsync(argv, { from: "node" });