From 0b192a02c19cf00a6b0e2415689733f7b2c2a68a Mon Sep 17 00:00:00 2001 From: Clay Good Date: Wed, 14 Oct 2026 10:05:29 -0500 Subject: [PATCH] test: read the supported-tools page with normalized line endings The new docs-claims test split sections on "\n", which finds nothing in a Windows checkout with core.autocrlf, so all three cases failed on windows-pwsh. The page is now read with CRLF normalized; verified locally against a CRLF copy of the file. Part of #2022 Co-Authored-By: Claude Opus 5.5 --- test/skill-targets-docs-claims.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/skill-targets-docs-claims.test.ts b/test/skill-targets-docs-claims.test.ts index d90ea2fe..eaef845f 100644 --- a/test/skill-targets-docs-claims.test.ts +++ b/test/skill-targets-docs-claims.test.ts @@ -6,10 +6,11 @@ import { AI_TOOLS } from '../src/core/config.js'; import { CommandAdapterRegistry } from '../src/core/command-generation/index.js'; const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); -const SUPPORTED = fs.readFileSync( - path.join(REPO_ROOT, 'docs-lab', 'reference', 'supported-tools.md'), - 'utf-8' -); +// A Windows checkout with core.autocrlf rewrites line endings, and the +// section splits below key on "\n". +const SUPPORTED = fs + .readFileSync(path.join(REPO_ROOT, 'docs-lab', 'reference', 'supported-tools.md'), 'utf-8') + .replace(/\r\n/g, '\n'); const section = (heading: string) => SUPPORTED.split(`### ${heading}\n`)[1].split('\n### ')[0]; const tool = (id: string) => AI_TOOLS.find((candidate) => candidate.value === id)!;