mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 10:58:37 +00:00
fix(qa): accept pnpm separator for lab up (#96246)
This commit is contained in:
@@ -33,8 +33,9 @@ Options:
|
||||
}
|
||||
|
||||
function parseQaLabUpArgs(argv: readonly string[]) {
|
||||
const args = argv[0] === "--" ? argv.slice(1) : argv;
|
||||
return parseArgs({
|
||||
args: [...argv],
|
||||
args: [...args],
|
||||
options,
|
||||
allowPositionals: false,
|
||||
}).values;
|
||||
|
||||
@@ -34,6 +34,19 @@ describe("scripts/qa-lab-up", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("accepts the pnpm run argument separator", async () => {
|
||||
const runQaDockerUpCommand = vi.fn(async () => {});
|
||||
const loadRuntime = vi.fn(async () => ({ runQaDockerUpCommand }));
|
||||
|
||||
await expect(
|
||||
qaLabUpTesting.runQaLabUp(["--", "--gateway-port", "4100"], { loadRuntime }),
|
||||
).resolves.toBe(0);
|
||||
|
||||
expect(runQaDockerUpCommand).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ gatewayPort: 4100 }),
|
||||
);
|
||||
});
|
||||
|
||||
it("accepts the maximum TCP port before loading the Docker runtime", async () => {
|
||||
const runQaDockerUpCommand = vi.fn(async () => {});
|
||||
const loadRuntime = vi.fn(async () => ({ runQaDockerUpCommand }));
|
||||
|
||||
Reference in New Issue
Block a user