mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-07 17:04:42 +00:00
fix(hub): isolate CLI test entrypoint
This commit is contained in:
@@ -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
-1
@@ -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" });
|
||||
Reference in New Issue
Block a user