From 0847e5a69cad6ad9ff6da8cdf634bae29a044971 Mon Sep 17 00:00:00 2001 From: Evan Tahler Date: Wed, 14 Jan 2026 13:54:23 -0800 Subject: [PATCH] ensure robots.txt via test --- tests/sitemap.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/sitemap.test.ts b/tests/sitemap.test.ts index c5162263a..176691076 100644 --- a/tests/sitemap.test.ts +++ b/tests/sitemap.test.ts @@ -1,3 +1,5 @@ +import { readFileSync } from "node:fs"; +import { join } from "node:path"; import { expect, test } from "vitest"; test("sitemap lists expected URLs", async () => { @@ -33,3 +35,12 @@ test("sitemap lists expected URLs", async () => { } } }); + +test("robots.txt references the sitemap", () => { + const robotsPath = join(process.cwd(), "public", "robots.txt"); + const robotsContent = readFileSync(robotsPath, "utf-8"); + + expect(robotsContent).toContain( + "Sitemap: https://docs.arcade.dev/sitemap.xml" + ); +});