#329·open-seo

pr-preview-access tests fail on Windows (Bash + Windows paths)

Author: WuerzeltDevOpsCreated Sep 13, 2026Updated Sep 13, 2026

TL;DR

src/lib/pr-preview-access.test.ts fails on Windows: every case exits with status 1 and zero attempt lines. The same tests pass on Linux CI.

What is happening?

The test spawns Git Bash and passes a Windows path (C:\…) as PREVIEW_RESPONSES. Inside Bash, exec 3< "C:\…" fails because backslashes mangle the path (No such file or directory), so the shell exits before the first loop iteration. Observed: expected 1 to be +0 (exit status) and expected [] to have a length of 8 but got +0 (no attempt N: output).

What should happen?

The preview-access verification tests should run on Windows checkouts too, so Windows contributors get the same signal as Linux CI.

Extra context

Repro: pnpm vitest run src/lib/pr-preview-access.test.ts on Windows with Git Bash on PATH. Minimal shell repro: bash -c 'exec 3< "C:\tmp\responses"'No such file or directory. Possible direction: convert the path (e.g. via cygpath) before handing it to Bash.