test(docs): skip i18n Go tests without toolchain · openclaw/openclaw@3bed73f
openclaw
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,9 @@
|
2 | 2 | import { spawnSync } from "node:child_process"; |
3 | 3 | import { describe, expect, it } from "vitest"; |
4 | 4 | |
5 | | -describe("docs-i18n Go module", () => { |
| 5 | +const hasGoToolchain = spawnSync("go", ["version"], { encoding: "utf8" }).status === 0; |
| 6 | + |
| 7 | +describe.skipIf(!hasGoToolchain)("docs-i18n Go module", () => { |
6 | 8 | it("passes Go tests", () => { |
7 | 9 | const result = spawnSync("go", ["test", "./...", "-count=1"], { |
8 | 10 | cwd: "scripts/docs-i18n", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。