Skip to content

Commit 3bed73f

Browse files
committed
test(docs): skip i18n Go tests without toolchain
1 parent 0dfa22c commit 3bed73f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

test/scripts/docs-i18n-behavior.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import { spawnSync } from "node:child_process";
33
import { describe, expect, it } from "vitest";
44

5-
describe("docs-i18n behavior baselines", () => {
5+
const hasGoToolchain = spawnSync("go", ["version"], { encoding: "utf8" }).status === 0;
6+
7+
describe.skipIf(!hasGoToolchain)("docs-i18n behavior baselines", () => {
68
it("keeps behavior fixtures passing", () => {
79
const result = spawnSync(
810
"go",

test/scripts/docs-i18n.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import { spawnSync } from "node:child_process";
33
import { describe, expect, it } from "vitest";
44

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", () => {
68
it("passes Go tests", () => {
79
const result = spawnSync("go", ["test", "./...", "-count=1"], {
810
cwd: "scripts/docs-i18n",

0 commit comments

Comments
 (0)