Commit Graph

1 Commits

Author SHA1 Message Date
connorshea 0ca6269144 fix(ci): fix the repo path normalization logic for tests on Windows. (#18815)
The previous code didn't handle normalization of paths for Windows, and so Vitest tests with snapshots that had paths were failing on Windows.

See https://github.com/oxc-project/oxc/actions/runs/21569650239/job/62146619752 for an example.

AI Disclosure: This change was made with help from Copilot + Raptor mini, and this regex is an abomination. It may be better to handle this via an additional `normalizeSlashes` call but I'm not entirely sure where to add that in this case, and I don't have a windows machine to test on.

I've also added tests with Claude, and confirmed that they work when backported to main, and so confirm the behavior has not changed on macOS (although I did have to find+replace NORMALIZED_REPO_ROOT with REPO_ROOT_PATH in the tests for that to work, but that's expected)
2026-02-02 00:13:43 +00:00