test(docker): expect prod store seed command · openclaw/openclaw@9f1472e
steipete
·
2026-05-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,14 +92,14 @@ describe("Dockerfile", () => {
|
92 | 92 | it("uses the Docker target platform for pnpm install and prune", async () => { |
93 | 93 | const dockerfile = await readFile(dockerfilePath, "utf8"); |
94 | 94 | const installIndex = dockerfile.indexOf("pnpm install --frozen-lockfile \\"); |
95 | | -const storeAddIndex = dockerfile.indexOf( |
| 95 | +const storeSeedIndex = dockerfile.indexOf( |
96 | 96 | "pnpm list --prod --depth Infinity --json | node scripts/list-prod-store-packages.mjs | xargs -r pnpm store add", |
97 | 97 | ); |
98 | 98 | const pruneIndex = dockerfile.indexOf("CI=true pnpm prune --prod \\"); |
99 | 99 | |
100 | 100 | expect(installIndex).toBeGreaterThan(-1); |
101 | | -expect(storeAddIndex).toBeGreaterThan(installIndex); |
102 | | -expect(storeAddIndex).toBeLessThan(pruneIndex); |
| 101 | +expect(storeSeedIndex).toBeGreaterThan(installIndex); |
| 102 | +expect(storeSeedIndex).toBeLessThan(pruneIndex); |
103 | 103 | expect(pruneIndex).toBeGreaterThan(-1); |
104 | 104 | expect(dockerfile).toContain("--config.offline=true"); |
105 | 105 | expect(dockerfile.split("--config.supportedArchitectures.os=linux").length - 1).toBe(2); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。