fix(scripts): accept forwarded watch regression args · openclaw/openclaw@7dde396
vincentkoc
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ import { describe, expect, it, vi } from "vitest";
|
6 | 6 | import { |
7 | 7 | appendBoundedWatchLog, |
8 | 8 | hasGatewayReadyLog, |
| 9 | +parseArgs, |
9 | 10 | shouldRefreshBuildStampForRestoredArtifacts, |
10 | 11 | stopTimedWatchChild, |
11 | 12 | updateWatchBuildDetection, |
@@ -18,6 +19,13 @@ import {
|
18 | 19 | } from "../../scripts/lib/local-build-metadata-paths.mjs"; |
19 | 20 | |
20 | 21 | describe("check-gateway-watch-regression", () => { |
| 22 | +it("accepts package-manager argument separators before script options", () => { |
| 23 | +expect(parseArgs(["--", "--window-ms", "1500", "--skip-build"])).toMatchObject({ |
| 24 | +skipBuild: true, |
| 25 | +windowMs: 1500, |
| 26 | +}); |
| 27 | +}); |
| 28 | + |
21 | 29 | it("recognizes current and legacy gateway ready logs", () => { |
22 | 30 | expect(hasGatewayReadyLog("[gateway] http server listening (0 plugins, 0.8s)")).toBe(true); |
23 | 31 | expect(hasGatewayReadyLog("[gateway] ready (0 plugins, 0.8s)")).toBe(true); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。