Skip to content

test: normalize config snapshot paths and run tests on Windows - #860

Open
kaanisthatyou wants to merge 1 commit into
vercel:mainfrom
kaanisthatyou:test/windows-paths
Open

kaanisthatyou wants to merge 1 commit into
vercel:mainfrom
kaanisthatyou:test/windows-paths

Conversation

@kaanisthatyou

Copy link
Copy Markdown

pnpm test fails 4 snapshot tests in tests/config.test.ts on Windows, because config.public is built with path.relative and uses \ there (tests\__fixtures__\config\valid\app), while the snapshots contain /.

This normalizes public to / in the test helper before the snapshot comparison (the loader itself is unchanged), and adds windows-latest to the test job so this keeps passing.

Tested: Windows 11 / Node 24 locally, 24 passing and 4 failing before, 28 passing after. The updated workflow passes on a fork for lint, ubuntu-latest and windows-latest (run).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XvSbVkca8tLnsnVVNKUQHQ

@vercel

vercel Bot commented Sep 13, 2026

Copy link
Copy Markdown

@kaanisthatyou is attempting to deploy a commit to the Internal Playground Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant