skip the '*' file in the review prompt test on Windows (#12090)

Windows forbids '*' in a file name, so creating it failed the test on the
Windows CLI runner. The :(literal) pathspec guard it covers is
platform-independent and stays exercised on Linux and macOS.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-10-28 23:10:52 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 2d9594f3f9
commit 1b30551c54
+3 -2
View File
@@ -140,8 +140,9 @@ describe("wmill review prompt", () => {
"encryption_key.yaml": "HEAD-ENCRYPTION-KEY\n",
"f/a/notes.prod.resource.yaml": "resource_type: postgresql\nvalue:\n password: PROD-PASSWORD\n",
"f/a/files.fileset/x.flow/flow.yaml": "password: FILESET-PASSWORD-2\n",
// A pathspec matching every changed file, if git were let read it as one.
"*": "star\n",
// A pathspec matching every changed file, if git were let read it as one. Windows
// forbids `*` in a file name.
...(process.platform === "win32" ? {} : { "*": "star\n" }),
},
(base, head) => {
const { system, user, instructions } = buildReviewPrompt(base, head);